[
https://issues.apache.org/struts/browse/WW-1862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41085
]
Adam Crume commented on WW-1862:
--------------------------------
I have the same problem and I can't "push the logic down a layer." The problem
is that my JSP requires that some logic be performed, so I have an action that
sets it up. (Hasn't Java code in JSPs been discouraged for years now?) Since
this JSP is the input to another action, if it fails to validate, the action
must go back to the first action instead of going directly to the JSP.
Besides, even if you don't consider it to be a good practice, this is still a
Struts bug and should be fixed.
> Chaining result from input to another action never excutes chained target.
> --------------------------------------------------------------------------
>
> Key: WW-1862
> URL: https://issues.apache.org/struts/browse/WW-1862
> Project: Struts 2
> Issue Type: Bug
> Reporter: spencer p
>
> I have two actions. The first submits to the other.
> <action name="x" class="y">
> <result name="success">
> ...
> </result>
> </action>
> <action name="z" class="a">
> <result name="input" type="chain">
> x
> </result>
> </action>
> If action z returns success, with no action errors populated, everything
> works fine. if z has an action error or returns input, things don't work out
> properly. Will i have to write a separate action called
> x-success-with-input-errors? (Or similar functionality)
> If I don't define an result in action 'x', it complains. Fair enough. Once
> I define the result, the class 'y' is never executed. It tries to render the
> template provided in the result under the x action. is it because I am
> returning input instead of success? Is it possible to map from one result
> name to another so I can get class y to execute?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.