File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Need help for refreshing the page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Need help for refreshing the page" Watch "Need help for refreshing the page" New topic
Author

Need help for refreshing the page

amma mal
Greenhorn

Joined: Apr 15, 2009
Posts: 10
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

Joined: Apr 30, 2007
Posts: 38
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

Joined: Apr 15, 2009
Posts: 10
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help for refreshing the page
 
Similar Threads
refreshing jsp page
Retaining optionsCollection Values
Displaying all the months in the year
Help needed urgent, unable to get the values , JSP
errors messages from ActionForm validate are not displaying