I'll +1 that with one reminder for Rosh:

You mentioned using the Validation Framework so don't forget to have your
ActionForm extend either ValidateActionForm or ValidatorForm.  Since I
didn't see any notes about that in Wendy's below link, and I've made this
mistake in the past, I thought I would emphasize the point for you. :)

Regards,
David

-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 4:27 PM
To: Struts Users Mailing List
Subject: Re: Question about Struts validator

On 6/27/06, mosho <[EMAIL PROTECTED]> wrote:

> If I call validate method manually, can I still use validator framework
and
> use the input attribute in the config file to display the errors?
>
> I need to validate only if form is submitted by clicking on a button.
> If, yes can you show me with an example how to call validate method in
> Action class, execute method.

Here's a tutorial that explains how to do it:
 * http://www.learntechnology.net/validate-manually.do

Another option is to override the 'validate' method of the form, and
only call super.validate() if the form was submitted.

--
Wendy


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

Reply via email to