Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help for refreshing the page

 
amma mal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Please help me with this problem, my JSP page is displaying errors when anything is not entered in textfield that is working fine, but when i click the back button and entering into the same JSP page still it is displaying the errors.It shouldn't show anything(refresh the page).In my struts-config file my scope="session"

any suggestions.

Thanks.
 
Mudit Srivastava
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amma,

Am unsure of how you could do so in Struts 1.X. I use an interceptor like this in Struts 2. The Code might help you.



You need to define the interceptor in struts-default.xml and include it your interceptor stack of course.
 
amma mal
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for your reply, I dint understand your code, but I think there is a simple solution for this using errors.clear()
I dont know at which place I have to give this, Please anybody give me suggessions.

Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic