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?? 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