Re: Validation on methods

2008-04-24 Thread Laurie Harper
The validate() method should be called for any request on that action unless (a) the request is serviced by an excluded method (where the set of excluded methods depends on the interceptor stack you are using and/or an explicit configuration you've specified) or (b) you have switched the 'allwa

Re: Validation on methods

2008-04-23 Thread Volker Karlmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Márcio*, *thanks for your quick answer. Yes, that will work, you're right. Unfortunately is is not exactly what i would want. You are doing your validation in the method that is called. I would prefer the framework to call *validate()* before (

Re: Validation on methods

2008-04-23 Thread Márcio Gurgel
Hi Volker, You can do it with struts xml validator: Include a xml into your action package like this: ActionName - alias from action - validation.xml Example: ActionName-save-validation.xml * Note that "save" is the name of action in your struts.xml Nothing better than a real example: struts

Validation on methods

2008-04-23 Thread volker
Hello y'all, i have quite an interesting problem again. In my struts.xml i have defined a method to call for my action (method="save") Every time my action class is called, the method validate() is executed. The same action class used with struts.xml-parameter method="save" is also executed as e