Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to retain, entered values

 
P. Udaya Shankar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i have one form i am validating it, whenever the error occurs i am displaying the error but whatever the info entered by the user will be empty. How to retain the entered info even when error occured
 
manasa teja
Ranch Hand
Posts: 325
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by P. Udaya Shankar:
hi,
i have one form i am validating it, whenever the error occurs i am displaying the error but whatever the info entered by the user will be empty. How to retain the entered info even when error occured

put the form in session scope or check ur reset method in your form
 
David Yutzy
tumbleweed and gunslinger
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or, make sure your input= value in Struts-config or forward from action points to the .jsp file, not another action (.do file).
You can then get away from using session scope for simple validations by using request.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic