Sorry -- missed the 'client-side' bit somehow.  ;)

On 7/13/05, Jeff Beal <[EMAIL PROTECTED]> wrote:
> Set validation off in struts-config and call the Validate method from
> within your Action:
> 
> if (yourForm.getAction().equals("action_to_validate")) {
>   ActionErrors errors = form.validate(/*params*/);
>   if (errors.isEmpty()) {
>     // all is good
>   } else {
>     saveErrors(errors);
>     return mapping.findInputForward();
>   }
> }
> 
> --Jeff
> 
> On 7/13/05, Marc Demlenne <[EMAIL PROTECTED]> wrote:
> > I DO use struts validator framework ...
> >
> > What i want is to to have _only_ one of the submit button to check the
> > client-side validation
> >
> > But I can only decide to call validator or not by form, not by button.
> > As it is for client side that I have this problem, I can't call it
> > from my modify method...
> >
> > On 13/07/05, Rafael Taboada <[EMAIL PROTECTED]> wrote:
> > > Hi, use Validator framework.
> > >  In this framework u can put code in order to set a client-side validation
> > > for each feld.
> > >  In ur modify method, call to ur validate method.
> > >  I hope it can help u
> > >
> > > --
> > > Rafael Taboada
> > > Software Engineer
> > >
> > > Cell : +511-97753290
> > >
> > > "No creo en el destino pues no me gusta tener la idea de controlar mi 
> > > vida"
> > >
> > >
> >
> >
> > --
> > Marc Demlenne
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to