You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Venkata Krishna V." <Ve...@infosys.com> on 2005/01/19 06:24:09 UTC

Using Validator framework with LookUpDispatchAction

Dear All,

Problem:

             We need to validate the form through Struts Validation
framework.

Current situation:

We have multiple submit buttons like (Add, Cancel and Delete) inside the
same form.We couldn't do the struts validation as it validates for all
the flow. (i.e. Instead of validating only for Add, the form is
validating even for Delete and Cancel).So to avoid this we are doing the
validation inside Action Class. We are using LookUpDispatchAction.

Any inputs would be highly helpful.

Regards,

Venkat

 


Re: Using Validator framework with LookUpDispatchAction

Posted by Vamsee Kanakala <vk...@spymac.com>.
Venkata Krishna V. wrote:

>the flow. (i.e. Instead of validating only for Add, the form is
>validating even for Delete and Cancel)
>
Add this in your validator plugin declaration in struts-config.xml:

<set-property property="stopOnFirstError" value="true"/>

Vamsee.

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