HI,
    I have gone through User's Guide provided in your website for the
use requiredif and validwhen in struts 1.3 but i m not getting the
desired result. please help me. I am providing the code below. Date
field is required when byDate is selected which is a radio button.
            <field
                property="byDate"
                depends="required">
                <arg0 key="By Date" resource="false"/>
            </field>
            <field
                property="date"
                depends="requiredif">
                <arg0 key="Date" resource="false"/>
                <var>
                    <var-name>field[0]</var-name>
                    <var-value>byDate</var-value>
                </var>
                <var>
                    <var-name>fieldTest[0]</var-name>
                    <var-value>EQUAL</var-value>
                </var>
                <var>
                    <var-name>fieldValue[0]</var-name>
                    <var-value>bydate</var-value>
                </var>
            </field>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to