File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
Struts 1.2 array validation
Populating bean from servlet
How do I do this, input field retains value
JSF error message - retain ?
Retaining Focus in Swing