Maybe I'm doing something really stupid here. I have two pages / actions (IdentifyAction -> identify-*.jsp -> VerifyAction -> verify-*.jsp)
When a user completes the fields on identify-sucess.jsp and submits the form to VerifyAction.. the validate() method on VerifyAction fails. I want the user to be returned to identify-success.jsp to fix the appropriate fields. Am I doing this wrong? On Tue, Nov 16, 2010 at 4:17 PM, Gena Ganebnyi <gganeb...@nebulent.com> wrote: > Why not to name your original page page-input.jsp? > > On Tue, Nov 16, 2010 at 10:31 PM, Greg Akins <angryg...@gmail.com> wrote: >> >> Does that mean that I can't use the Convention plugin if I want the >> Validation Interceptor to behave like I'm expecting? >> >> It seems like the information I've read so far implies that the >> Validator Interceptor will allow the "submitting" page to appear with >> the information filled in and the error messages displaying where >> appropriate. But if I follow the Convention plugin and use it's >> action/results then I don't get the same behavior. >> >> Am I missing something, or is this correct. >> >> On Tue, Nov 16, 2010 at 3:06 PM, Gena Ganebnyi <gganeb...@nebulent.com> >> wrote: >> > When validation fails, intercept returns "INPUT" on behalf of the >> > action. >> > That is why convention plugin takes you to page-input.jsp >> > >> > On Nov 16, 2010 9:06 PM, "Greg Akins" <angryg...@gmail.com> wrote: >> >> I'm trying to get validation working.. should be pretty simple. >> >> >> >> It looks like if my validation fails Struts should auto-magically take >> >> me back to the originating jsp. Instead Struts keeps wanting to find >> >> a page-INPUT.jsp to match the INPUT return type. >> >> >> >> I'm using the convention plugin and using annotations, rather than >> >> validator.xml, for validations. Struts 2.2.1. There is no struts.xml >> >> file in the project (everything is through annotations.). >> >> >> >> Any hints? >> >> >> >> -- >> >> Greg Akins >> >> >> >> http://insomnia-consulting.org >> >> http://www.pghcodingdojo.org >> >> http://pittjug.dev.java.net >> >> http://twitter.com/akinsgre >> >> http://www.linkedin.com/in/akinsgre >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> > >> >> >> >> -- >> Greg Akins >> >> http://insomnia-consulting.org >> http://www.pghcodingdojo.org >> http://pittjug.dev.java.net >> http://twitter.com/akinsgre >> http://www.linkedin.com/in/akinsgre > > -- Greg Akins http://insomnia-consulting.org http://www.pghcodingdojo.org http://pittjug.dev.java.net http://twitter.com/akinsgre http://www.linkedin.com/in/akinsgre --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org