You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Toni Lyytikäinen (JIRA)" <ji...@apache.org> on 2007/08/10 17:51:18 UTC

[jira] Created: (WW-2102) action-tag will not call action method from a jsp page that is rendered from an "input" result

action-tag will not call action method from a jsp page that is rendered from an "input" result
----------------------------------------------------------------------------------------------

                 Key: WW-2102
                 URL: https://issues.apache.org/struts/browse/WW-2102
             Project: Struts 2
          Issue Type: Bug
          Components: Views
    Affects Versions: 2.0.9
         Environment: Ubuntu 7.04, Tomcat 5.5, Struts 2.0.9
            Reporter: Toni Lyytikäinen


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.


[jira] Commented: (WW-2102) action-tag will not call action method from a jsp page that is rendered from an "input" result

Posted by "Ronny Løvtangen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44965#action_44965 ] 

Ronny Løvtangen commented on WW-2102:
-------------------------------------

See WW-2869 for an explanation of what the problem is. A workaround is to remove the chain interceptor, or implement Unchainable on GetFlashWidget

> action-tag will not call action method from a jsp page that is rendered from an "input" result
> ----------------------------------------------------------------------------------------------
>
>                 Key: WW-2102
>                 URL: https://issues.apache.org/struts/browse/WW-2102
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.9
>         Environment: Ubuntu 7.04, Tomcat 5.5, Struts 2.0.9
>            Reporter: Toni Lyytikäinen
>            Assignee: Don Brown
>             Fix For: 2.1.0
>
>
> 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.


[jira] Commented: (WW-2102) action-tag will not call action method from a jsp page that is rendered from an "input" result

Posted by "Jameel Gbajabiamila (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42547 ] 

Jameel Gbajabiamila commented on WW-2102:
-----------------------------------------

I am having the same issue. I have a validation check on action editflashwidget when it fails it calls the input result which takes you to /admin/listflashwidget.jsp. The listflashwidget.jsp has an action call embedded in the jsp. 


listflashwidgets.jsp

struts.xml
    <package name="admin" extends="struts-default" namespace="/admin">
        <action name="listflashwidget" class="com.flashwidgetz.action.flash.ListFlashWidget"/>
        <action name="addflashwidget" class="com.flashwidgetz.action.flash.AddFlashWidget">
           <result name="input">/admin/addflashwidget.jsp</result>
           <result name="success">/admin/addflashwidget.jsp</result>
           <result name="error">/admin/addflashwidget.jsp</result>
      </action>
       <action name="editflashwidget" class="com.flashwidgetz.action.flash.GetFlashWidget">
          <result>/admin/editflashwidget.jsp</result>
          <result name="input">/admin/listflashwidget.jsp</result>
      </action>
    </package>


> action-tag will not call action method from a jsp page that is rendered from an "input" result
> ----------------------------------------------------------------------------------------------
>
>                 Key: WW-2102
>                 URL: https://issues.apache.org/struts/browse/WW-2102
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.9
>         Environment: Ubuntu 7.04, Tomcat 5.5, Struts 2.0.9
>            Reporter: Toni Lyytikäinen
>            Assignee: Don Brown
>             Fix For: 2.1.0
>
>
> 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.


[jira] Updated: (WW-2102) action-tag will not call action method from a jsp page that is rendered from an "input" result

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2102:
-----------------------------

    Fix Version/s:     (was: 2.0.11)
                   2.0.12

> action-tag will not call action method from a jsp page that is rendered from an "input" result
> ----------------------------------------------------------------------------------------------
>
>                 Key: WW-2102
>                 URL: https://issues.apache.org/struts/browse/WW-2102
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.9
>         Environment: Ubuntu 7.04, Tomcat 5.5, Struts 2.0.9
>            Reporter: Toni Lyytikäinen
>             Fix For: 2.0.12
>
>
> 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.


[jira] Updated: (WW-2102) action-tag will not call action method from a jsp page that is rendered from an "input" result

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2102:
-----------------------------

    Fix Version/s: 2.0.11

> action-tag will not call action method from a jsp page that is rendered from an "input" result
> ----------------------------------------------------------------------------------------------
>
>                 Key: WW-2102
>                 URL: https://issues.apache.org/struts/browse/WW-2102
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.9
>         Environment: Ubuntu 7.04, Tomcat 5.5, Struts 2.0.9
>            Reporter: Toni Lyytikäinen
>             Fix For: 2.0.11
>
>
> 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.


[jira] Commented: (WW-2102) action-tag will not call action method from a jsp page that is rendered from an "input" result

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42258 ] 

Don Brown commented on WW-2102:
-------------------------------

Reopen with more info if you are still experiencing this issue

> action-tag will not call action method from a jsp page that is rendered from an "input" result
> ----------------------------------------------------------------------------------------------
>
>                 Key: WW-2102
>                 URL: https://issues.apache.org/struts/browse/WW-2102
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.9
>         Environment: Ubuntu 7.04, Tomcat 5.5, Struts 2.0.9
>            Reporter: Toni Lyytikäinen
>            Assignee: Don Brown
>             Fix For: 2.1.0
>
>
> 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.


[jira] Resolved: (WW-2102) action-tag will not call action method from a jsp page that is rendered from an "input" result

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown resolved WW-2102.
---------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0.12)
                   2.1.0
         Assignee: Don Brown

I wasn't able to reproduce this, but I did make a slight change in how the method is resolved that could help.

> action-tag will not call action method from a jsp page that is rendered from an "input" result
> ----------------------------------------------------------------------------------------------
>
>                 Key: WW-2102
>                 URL: https://issues.apache.org/struts/browse/WW-2102
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Views
>    Affects Versions: 2.0.9
>         Environment: Ubuntu 7.04, Tomcat 5.5, Struts 2.0.9
>            Reporter: Toni Lyytikäinen
>            Assignee: Don Brown
>             Fix For: 2.1.0
>
>
> 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.


[jira] Issue Comment Edited: (WW-2102) action-tag will not call action method from a jsp page that is rendered from an "input" result

Posted by "Jameel Gbajabiamila (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42547 ] 

jameelg edited comment on WW-2102 at 11/3/07 6:35 PM:
------------------------------------------------------------------

I am having the same issue. I have a validation check on action editflashwidget when it fails it calls the input result which takes you to /admin/listflashwidget.jsp. The listflashwidget.jsp has an action call embedded in the jsp. When the editflashwidget validation fails it goes to the listflashwidget.jsp page, but the action listflashwidget isnt called from this page. 

However if i just load listflashwidget.jsp the listflashwidget call executes. It appears rendering a page as an input prevents any embedded actions on that page from executing. I tried with 2.1.0 and still have the same issue. 


listflashwidget.jsp
<s:action namespace="/admin" name="listflashwidget" id="flashwidgets"/>

struts.xml
    <package name="admin" extends="struts-default" namespace="/admin">
        <action name="listflashwidget" class="com.flashwidgetz.action.flash.ListFlashWidget"/>
        <action name="addflashwidget" class="com.flashwidgetz.action.flash.AddFlashWidget">
           <result name="input">/admin/addflashwidget.jsp</result>
           <result name="success">/admin/addflashwidget.jsp</result>
           <result name="error">/admin/addflashwidget.jsp</result>
      </action>
       <action name="editflashwidget" class="com.flashwidgetz.action.flash.GetFlashWidget">
          <result>/admin/editflashwidget.jsp</result>
          <result name="input">/admin/listflashwidget.jsp</result>
      </action>
    </package>


      was (Author: jameelg):
    I am having the same issue. I have a validation check on action editflashwidget when it fails it calls the input result which takes you to /admin/listflashwidget.jsp. The listflashwidget.jsp has an action call embedded in the jsp. 


listflashwidgets.jsp

struts.xml
    <package name="admin" extends="struts-default" namespace="/admin">
        <action name="listflashwidget" class="com.flashwidgetz.action.flash.ListFlashWidget"/>
        <action name="addflashwidget" class="com.flashwidgetz.action.flash.AddFlashWidget">
           <result name="input">/admin/addflashwidget.jsp</result>
           <result name="success">/admin/addflashwidget.jsp</result>
           <result name="error">/admin/addflashwidget.jsp</result>
      </action>
       <action name="editflashwidget" class="com.flashwidgetz.action.flash.GetFlashWidget">
          <result>/admin/editflashwidget.jsp</result>
          <result name="input">/admin/listflashwidget.jsp</result>
      </action>
    </package>

  
> action-tag will not call action method from a jsp page that is rendered from an "input" result
> ----------------------------------------------------------------------------------------------
>
>                 Key: WW-2102
>                 URL: https://issues.apache.org/struts/browse/WW-2102
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.0.9
>         Environment: Ubuntu 7.04, Tomcat 5.5, Struts 2.0.9
>            Reporter: Toni Lyytikäinen
>            Assignee: Don Brown
>             Fix For: 2.1.0
>
>
> 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.