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 how to refresh a jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to refresh a jsp page
 
Similar Threads
Refresh problem
frameset with jsp
jsp and ajax
jsp and ajax
Browser Back button problem using struts.