Re: [struts2] Redirecting to different pages on validate method

2008-01-16 Thread Dave Newton
Another possible solution is to use an OGNL expression as the value for the "input" result element and use either a form property or a non-form action property for the value. You could also set the "inputResultName" on the workflow interceptor [1], although that might not be as flexible of a solut

Re: [struts2] Redirecting to different pages on validate method

2008-01-16 Thread Ted Husted
One of the results to the action stanza should be named "input". The "input" result is the one that is selected when validation fails. For an individual action, it looks something like this: /Login.jsp A default input result can also be set for an entire package, and then ch

[struts2] Redirecting to different pages on validate method

2008-01-16 Thread Marcos Mendonça
Hello I have two diferrent jsp for an action. Its works all right, only problem is that, if there are validation errors it always returns to the same jsp, and that sometimes it's not the jsp that posted the data. What configuration I have to do in struts.xml or how to I decide on the validate met