I want to enable my submit button only when the checkbox is checked..
Can you please tell me what modifications i have to do in <html:checkbox ......
and what all files do i have to change
I am new to struts please help
Hi thanks for the reply
this is my checkbox..its in the jsp file
<html:checkbox property="receiveEmail"/><bean:message key="receiveEmail.label"/>
and the next part of the code is validation.xml
<field property="receiveEmail" depends="required, validwhen">
<arg0 name="test" key="receiveEmail.label"/>
<var-value>(*this* == "true")</var-value>
can you please help me in which file should i make changes and how