获取URL查询参数
需要使用 @QueryParameter
注解,例如:
@MappingTo("/helloAction.do")
public class HelloAction {
public void execute(@QueryParameter("value") boolean ajaxTo) {
...
}
}
请求URL地址:http://localhost:8080/helloAction.do?value=true
\
需要使用 @QueryParameter
注解,例如:
@MappingTo("/helloAction.do")
public class HelloAction {
public void execute(@QueryParameter("value") boolean ajaxTo) {
...
}
}
请求URL地址:http://localhost:8080/helloAction.do?value=true
\