Re: Another stupid question re: Interceptors

2010-11-17 Thread Paweł Wielgus
Hi all, then You have to state it: (pseudo code!) @Result(name='input', value='identify-success.jsp') in VerifyAction. But when it comes to action and result configuration best thing to do is: http://poulwiel.blogspot.com/2009/09/config-browser-plugin-in-struts2.html Best greetings, Paweł

Re: Another stupid question re: Interceptors

2010-11-17 Thread Li Ying
I suggest you to do these things in the following way: (1)put 2 method in IdentifyAction. The first [execute] method returns [input], show the input page to user. (2)In the Identify-input.jsp, submit fields to [IdentifyAction] itself, but another method: [verify] (3)when validation fails, the

Re: Another stupid question re: Interceptors

2010-11-17 Thread Greg Akins
On Wed, Nov 17, 2010 at 8:14 AM, Li Ying liying.cn.2...@gmail.com wrote: I suggest you to do these things in the following way: This is where I think I messed things up. My identifyAction didn't have setters/getters for the fields because the verifyAction captured the results of that input.

Another stupid question re: Interceptors

2010-11-16 Thread Greg Akins
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

Re: Another stupid question re: Interceptors

2010-11-16 Thread Gena Ganebnyi
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

Re: Another stupid question re: Interceptors

2010-11-16 Thread Gena Ganebnyi
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

Re: Another stupid question re: Interceptors

2010-11-16 Thread Greg Akins
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