This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes problem using validwhen and radio button Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "problem using validwhen and radio button" Watch "problem using validwhen and radio button" New topic
Author

problem using validwhen and radio button

Mona Tajik
Greenhorn

Joined: Apr 27, 2006
Posts: 11
hello all..

can anyone pls help me with my problem here? I'm trying to validate a form using the validwhen in struts. I have a form to add a user which contains a radio button group. Whenever one of the radio button is selected the corresponding textbox should also be filled. I manage to make the validation work but it is now requiring the user to fill up both the radio button and the text box What I wanted is just if one radio button is selected one text box should also be filled.. please help...........
validation.xml


snippet of Add.jsp
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem using validwhen and radio button
 
Similar Threads
Struts Validation Problem
Help with validwhen rule
Problems in struts 1 indexedListProperty
Javascript and Struts Indexed Text Boxes
Help with validation rules for form with multiple submit buttons