--- "Allen, Daniel" <[EMAIL PROTECTED]> wrote:
> Basically, all you need to do for custom or complex validation is to
> have the action in question implement Validateable, and then have a
> public void validate() method that makes calls to
> addActionError(String). Also check out the built-in validators that you
> can apply with annotations. They're a real time-saver for simple
> validations.
> 
> Is this what you were talking about?

I think the question was regarding custom validators.

> From: Mano Dasanayaka [mailto:[EMAIL PROTECTED] 
> Can any one suggest me a good article that describes adding a custom
> validator and how to configure.  Sample code along with required
> configurations is also appreciated.

I'd recommend looking at [1] and any of the included validators--whichever
one comes the closest to whatever it is you're trying to validate. [2] is a
WebWork article that goes into a bit of detail, but I think looking at one of
the validators included in the distro would be helpful.

Dave

[1] http://struts.apache.org/2.x/docs/validation.html
[2]
http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html?page=3#custom-validators



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

Reply via email to