Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [S2] question on validation

Dave Newton

2007-02-09

Replies:

--- Daniel Amadei wrote:
> My question is: is there a way to configure the
> validation for an action to work just for some
> methods and not for others?

This is off the top of my head; typical grain-of-salt
warnings apply.

In addition to tweaking the list of methods that are
skipped for the validation interceptor (fine if you
have consistent method names, otherwise... not so
fine) I belive you can use the curiously-named "alias"
feature:

ActionName-methodName-validation.xml

which defines the validation for a method of an
Action.

I think; it's Friday, it's late, and I don't have my
dev box :/

Dave




____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.