I'm having trouble executing an action after
validation has been performed and fails.

Here is the scenario. I have an update page where
users can update a record in the database. This page
uses the standard struts 2 form and has a submit
button. When I click the submit button, validation
fails as expected and the page is redisplayed  as
expected showing the validation errors. On this same
page I have a "Cancel" link that links back to another
action. If I click this link after a failed validation
I get the following error:

No result defined for action
com.xyz.action.EmployeeAction and result input 

Basically Struts 2 is saying that there is no "input"
result defined for the employee action. That is
correct. There is not an "input" result for that
action because it isn't supposed to have one. I am
simply trying to link the cancel link to that action.
The EmployeeUpdateAction has an "input" result because
it is the action that performs validation and that
works fine.

My question is how to get around Struts 2 trying to
find an "input" result for any other actions that have
nothing to do with the action that is performing the
validation. It appears Struts 2 is "caching" the
"input" result after a failed validation and is 
attaching that result to any subsequent actions.

Any ideas on how to fix this? Is this a bug in Struts
2?


-Bill


 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to