• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need help for refreshing the page

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic