You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dinesh Samson J <di...@uaeexchange.com> on 2003/02/10 15:26:37 UTC
requiredif
Greetings,
My required if condition in validation.xml is not working.
The following is the code in my validation.xml file.
<field property="lastName" depends="requiredif">
<arg0 key="label.lastName"/>
<var>
<var-name>field</var-name>
<var-value>firstName</var-value>
</var>
<var>
<var-name>field-test</var-name>
<var-value>NOTNULL</var-value>
</var>
</field>
My condition is:
lastName should be present, if firstName is entered.
The validator throws up the message "lastName is required", for both the
conditions;
whether the field firstName is empty or some text is inputted.
Is anything wrong in what I am doing?
Can anyone help me?
Thank in Advance,
Dinesh Samson J
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: ActionForm methods Naming Conventions - Urgent
Posted by Iris <ir...@enix.org>.
When you have
String getTName()
void setTName(String tName)
in your ActionForm, you use them in your JSP like
<html:text property="tName" ..... >
This help you ?
Iris
ashokd wrote:
>Hi,
>
>Their is any naming conventions for ActionForm methods ?
>
>I got a problem with this.
>
>First I used like below then I got the problem(NumberFormatException:
>getTName()
>setTName()
>
>Later I changed to
>
>getTableName();
>setTableName();
>
>By using above two method names the exception gone.
>
>Any one can help on this.
>
>Thanks & Regards,
>Ashok.D
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
ActionForm methods Naming Conventions - Urgent
Posted by ashokd <as...@visualsoft-tech.com>.
Hi,
Their is any naming conventions for ActionForm methods ?
I got a problem with this.
First I used like below then I got the problem(NumberFormatException:
getTName()
setTName()
Later I changed to
getTableName();
setTableName();
By using above two method names the exception gone.
Any one can help on this.
Thanks & Regards,
Ashok.D
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org