aspose file tools*
The moose likes Struts and the fly likes how to retain, entered values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to retain, entered values" Watch "how to retain, entered values" New topic
Author

how to retain, entered values

P. Udaya Shankar
Greenhorn

Joined: Nov 18, 2003
Posts: 21
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

Joined: May 27, 2002
Posts: 325
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


MT
David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to retain, entered values