• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem using validwhen and radio button

 
Mona Tajik
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!