项目用struts提交一个表单后,我为了能够让用户继续输入,所以在Action中处理完刚刚提交的内容后再forward到刚才的输入页面,就是说:input.jsp -> regOrder.do ->input.jsp
但是在action执行结束并再次跳转到input.jsp后,刚刚输入的内容还存在在表单内,请问用什么办法解决该问题??????

解决方案 »

  1.   

    将表单内的属性中 加上 value=""
    就ok了
      

  2.   

    作用域设置成request就可以了。
      

  3.   

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

  4.   


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

  5.   

    作用域设置成request不行,清空ActionForm不好,
    redirect="true"素王道!!!!!!