• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to retain /persist values in form after it submits

 
Vic Hood
Ranch Hand
Posts: 477
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,
Im developing a web application ,that requires insertion and updation of values from the database . However ,I want to persist /retain the values in the formm after i submit the form (so that the user has an idea of what he has inserted /updated).Any idea how I could go about this?
Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35716
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Store the values in the request (if only need it right after) or session (if you need it on later pages). Then redisplay the form setting the default values to what you have in the request/session. Many MVC frameworks handle this for you by default.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!