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ł
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
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.
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
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
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
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
7 matches
Mail list logo