跳到主要内容

获取URL查询参数

需要使用 @QueryParameter 注解,例如:

@MappingTo("/helloAction.do")
public class HelloAction {
@Any
public void execute(@QueryParameter("value") boolean ajaxTo) {
...
}
}

请求URL地址:http://localhost:8080/helloAction.do?value=true\