开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜