需要请求中的查询字符串与操作映射的输入属性一起使用
我使用的是struts 1.3.10。我需要请求中的查询字符串与操作映射的输入属性一起使用,以便在验证失败时,转发到正确的页面,而不会出现任何空指针异常。我该怎么做?我确实将整个forward(myAction.do?foo="bar") 作为通过jsp 发布的表单属性。如果我不清楚问题的定义,请告诉我。
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 throught he jsp. Plesae let me know if I am not clear on the problem definition.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您尝试过 request.getQueryString() 吗?
例子:
Have you tried
request.getQueryString()
?Example: