日期:2014-05-18  浏览次数:20732 次

Struts页面刷新问题
项目用struts

提交一个表单后,我为了能够让用户继续输入,所以在Action中处理完刚刚提交的内容后再forward到刚才的输入页面,

就是说:input.jsp   ->   regOrder.do   -> input.jsp


但是在action执行结束并再次跳转到input.jsp后,刚刚输入的内容还存在在表单内,

请问用什么办法解决该问题??????

------解决方案--------------------
将表单内的属性中 加上 value= " "
就ok了
------解决方案--------------------
ActionForm清空
------解决方案--------------------
作用域设置成request就可以了。
------解决方案--------------------
ActionForm清空

------解决方案--------------------
在struts-config.xml中
<forward name= "success "
path= "/xxxx.jsp "
contextRelative= "true "
redirect= "true " /> redirect=true就可以了。
------解决方案--------------------
redirect=true
------解决方案--------------------

在struts-config.xml中
<forward name= "success "
path= "/xxxx.jsp "
contextRelative= "true "
redirect= "true " /> redirect=true就可以了。



------解决方案--------------------
把form清空
------解决方案--------------------
楼上那些都说了,我没其它的办法了
------解决方案--------------------
value= " "
------解决方案--------------------
learn