Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to refresh a jsp page

 
srinivasrao yakala
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic