You need to use either DynaValidatorForm or DynaValidatorActionForm for the Struts validator to work. If you've already configured the validations in the xml files then all you should need to do is use the right Dyna classes.

David

Ok, maybe I don't understand the Validator system well yet.
I would like to apply the server-side and client side validation.
(server-side for if client side falls thought for some or other reason)
What is the best and easiest way to do this?

----- Original Message -----
From: "Alen Ribic" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Sunday, June 08, 2003 10:57 PM
Subject: Adding server-side validation when using DispatchAction


> Hey all > > I'm currently combining several similar actions using sublass of > DispatchAction class. > I'm using the Validator (validator-rules.xml, validation.xml as plugin) for > my client-side validation successfully. > > I'm also using the DynaActionForm for my form bean(s). > > Since now I don't have a subclass of ActionForm, how do I override the > validate() method? > Basically, using subclass of ActionForm all the time, I used to place my > server-side validation into the validate() method. > How do I apply server-side validation when using DynaActionForm and > DispatchAction classes? > > Thanks > --Alen > > > > --------------------------------------------------------------------- > 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]


_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



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



Reply via email to