This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
validating radio buttons using validator or validation-ruls.xml
posted 10 years ago
I got radio buttons in my JSP, here i need to show a error message if the user didn't select none of the radio buttons (condition is: if the enteredFlag="Y" then all radio buttons must be selected else not required). Here we need to use validation.xml or validator-rules.xml for all validations.But the problem is here i got a "xesp" which is declared as Obect array in struts-config.xml, each object[i] will show what the user selected. 1. how to show the message according to the condtion. 2. its showing the 9 messages if user didn't select 9 options.(it should show only message saying all must be selected)