[ https://issues.apache.org/struts/browse/WW-2599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43640#action_43640 ]
tolyen edited comment on WW-2599 at 4/18/08 5:08 AM: --------------------------------------------------------------- And here's the project. It's created using maven 2. To run it just type mvn jetty:run (provided that you have maven installed). Navigate your browser to http://localhost:8080/Struts2-problemdemo/form.action and then everything should be pretty self-evident (hopefully!). Leave the texfield empty for an input result and type some text into it for success result. If you look at the implementation of the listIntoRequest you can see that it can only ever return the success result, but for some reason, if the action-tag is used in a page that is rendered from an input result, it will render the input result for the listIntoRequest too, without even executing the method. was (Author: tolyen): And here's the project. It's created using maven 2. To run it just type mvn jetty:run (provided that you have maven installed). Navigate your browser to http://localhost:8080/Struts2-problemdemo/form.action and then everything should be pretty self-evident (hopefully!). Leave the texfield empty for an input result and type some text into it for success result. If you look at the implementation of the listIntoRequest you can see that it can only ever return the success result, but for some reason, if the action-tag is used in a page that is rendered from an input result, it will render the input result for the listIntoRequest too, without even executing the action. > action-tag will not call action method from a jsp page that is rendered from > an "input" result > ---------------------------------------------------------------------------------------------- > > Key: WW-2599 > URL: https://issues.apache.org/struts/browse/WW-2599 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - Tags > Affects Versions: 2.1.1 > Environment: Ubuntu 7.04, Tomcat 5.5, Struts 2.0.9 > Reporter: Toni Lyytikäinen > Assignee: Don Brown > Fix For: 2.1.0 > > Attachments: Struts2-issue2599.zip > > > I have a simple form page which calls another action to populate a > select-field, like this: > <s:action name="testAction" /> > The problem is, when the form page is rendered from an "input" result, it > will not call the action method specified by the tag, but instead it will > return the "input" result of the testAction -mapping. > The action tag should call the action method and render the output based on > what it returns, instead of automatically using the "input" result returned > by the original action which rendered the page where the tag is. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.