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 >