It's not a secret anymore!
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to refresh a jsp page" Watch "how to refresh a jsp page" New topic

how to refresh a jsp page

srinivasrao yakala

Joined: Aug 07, 2006
Posts: 1
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
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:
subject: how to refresh a jsp page
It's not a secret anymore!