ok i will change it.. when voting is done ;)
or i will add a patch :(

tibi

Matt Raible wrote:
> On Mon, Aug 10, 2009 at 11:59 AM, tibi<t...@dds.nl> wrote:
>   
>> i think it will go back to 'input'
>> but then i have multiple inputs.. so i split them in the struts xml
>> giving something like this:
>>        <action name="payDirectDebit" class="payAction">
>>            <result
>> name="input">/WEB-INF/pages/consumer/secure/payDirectDebitData.jsp</result>
>>            <result
>> name="success">/WEB-INF/pages/consumer/secure/payFinish.jsp</result>
>>        </action>
>>        <action name="payCreditCard" class="payAction">
>>            <result
>> name="input">/WEB-INF/pages/consumer/secure/payCreditCard.jsp</result>
>>            <result
>> name="success">/WEB-INF/pages/consumer/secure/payFinish.jsp</result>
>>        </action>
>>
>>
>> matt is it a good idea to add this:
>>
>>  <param name="validateAnnotatedMethodOnly">true</param>
>>
>>
>> by default to the struts.xml file??
>>     
>
> I'd like to do whatever we can to eliminate struts.xml (and other
> framework required XML files). If this helps accomplish that, I'm all
> for it.
>
> Matt
>
>   
>> tibi
>>
>>
>> tibi wrote:
>>     
>>> i started using annotation for my validation. that is great another xml
>>> files is gone.
>>> but when things got more complicated i had more methods in my action.
>>> and on all methods there was done validation.
>>> after a some search i found this:
>>> ----------------------------------
>>>
>>> When multiple methods are used to map different actions on the same
>>> class, and one of them is annotated with /@Validations/, those
>>> validators will be triggered for all the actions, unless they are
>>> annotated with @SkipValidation or /validateAnnotatedMethodOnly/ is set
>>> to /true/ in the "validation" interceptor, like:
>>>
>>> <interceptor-ref name="validation">
>>>     <param name="validateAnnotatedMethodOnly">true</param>
>>>     <param name="excludeMethods">input,back,cancel,browse</param>
>>> </interceptor-ref>
>>> ------------------------------
>>>
>>> but when i use this. after an error (whithout javascript) i get directed 
>>> back to my succes page....
>>>
>>>
>>> tibi
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to