开发者

need the query string from the request to use with the input attribute of the action mapping

开发者 https://www.devze.com 2023-03-19 18:49 出处:网络
I am using struts 1.3.10. I need the query string from the request to use with the input attribute of the action mapping so that when validation fails, the forward goes to correct page without any nul

I am using struts 1.3.10. I need the query string from the request to use with the input attribute of the action mapping so that when validation fails, the forward goes to correct page without any null pointer exceptions. how can I do this? I do have the entire forward(myAction.do?foo="bar") as a form property posted throug开发者_如何学运维ht he jsp. Plesae let me know if I am not clear on the problem definition.


Have you tried request.getQueryString()?

Example:

String queryString = request.getQueryString(); //where "request" is "HttpServletRequest"
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号