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 text field not populating after validate() fails. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "text field not populating after validate() fails." Watch "text field not populating after validate() fails." New topic
Author

text field not populating after validate() fails.

Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi,

I have a form which consists of pull-down menus, radio button, text area and text fields. The form takes all the required input fields from user, validate them and if validation fail's, the same form is called with pre-populated values (as entered 1st time by user). This is true when there is NO form "name" and "type" is given in form tag. But when I give form "name" and "type" in form tag, only pull-down menus are populated if validation fails. Whereas, text field, text area and radio buttons are not pre-poulated.

I'm not sure what is going wrong here?? Below is the related code I'm using.



Bye,
Viki.
[ December 21, 2005: Message edited by: Vikrama Sanjeeva ]

Count the flowers of your garden, NOT the leafs which falls away!
Prepare IBM Exam 340 by joining http://groups.yahoo.com/group/IBM340Exam/
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: text field not populating after validate() fails.