OK......now I haven't done this, so this is just based on my understanding.
If this is incorrect, hopefully someone else will step in.

Let's say that you have the following action mapping
<action path="/path/to/myLogonAction"
type="com.something.my.package.MyLogonAction"  name="logonForm"
.................. />

Then in validation.xml change <form name="logonForm"
............................
to <form name="/path/to/myLogonAction"  .............................


Let us know if this works for you, 'cause like I said, I haven't tried it.

Dave Derry

----- Original Message -----
From: "bachan s" <[EMAIL PROTECTED]>


>
> That also sounds good.
> Can you please tell how this entry would look like in validation.xml if we
want to validate based on action type.
>
>  <formset>
>         <form name="logonForm">
>             <field property="value(username)"
>                     depends="minlength,maxlength">
>                 <arg0   key="prompt.username"/>
>                 <arg1   key="${var:minlength}" name="minlength"
>                    resource="false"/>
>                 <arg2   key="${var:maxlength}" name="maxlength"
>                    resource="false"/>
>                 <var>
>                     <var-name>maxlength</var-name>
>                     <var-value>16</var-value>
>                 </var>
>                 <var>
>                     <var-name>minlength</var-name>
>                     <var-value>3</var-value>
>                 </var>
>             </field>
>
> </form>
>
> Thanks !
>
> Bachan
>
>  Dave Derry <[EMAIL PROTECTED]> wrote:You can also validate based on the
action rather than the form. Just use the
> action type rather than the form name, and be sure to extend
> ValidatorActionForm rather than ValidatorForm.
>
> Dave Derry
>



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to