This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes how to refresh a jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to refresh a jsp page" Watch "how to refresh a jsp page" New topic
Author

how to refresh a jsp page

srinivasrao yakala
Greenhorn

Joined: Aug 07, 2006
Posts: 1
hi,
i m using jsp page. in that im using html and bean tags and i m also validating the form by using validation frame work. every thing is fine but when i return to the same page after inserting the values in a data base the previous values are there in the text boxes. how can i refresh the value when i again comes to the same page.
remember i m using validator frame work

thank in advance
regards
srinivas
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Are you using session or request scoped forms? If you are using request-based, then you might just need to add redirect="true" to your forward that redisplays your page. This will cause all the values in the request to be lost. If you are using session-based, then it might involve implementing the reset method on your form (I actually don't use session-based forms enough to know the details).

- Brent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to refresh a jsp page
 
Similar Threads
jsp and ajax
frameset with jsp
Browser Back button problem using struts.
Refresh problem
jsp and ajax