You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Alvin Singh (JIRA)" <ji...@apache.org> on 2008/08/27 10:34:25 UTC

[jira] Created: (WW-2789) Struts tags and dynamic method invocation

Struts tags and dynamic method invocation
-----------------------------------------

                 Key: WW-2789
                 URL: https://issues.apache.org/struts/browse/WW-2789
             Project: Struts 2
          Issue Type: Bug
          Components: Core Actions
    Affects Versions: 2.1.2
         Environment: mac, jdk1.5, tomcat6
            Reporter: Alvin Singh


Having issues with this version of struts and struts tags when trying to render.

For example when my action extention is .action the following should render the action attribute with the extension ".action". This works fine -

<s:form action="createSpace" method="post" cssClass="form"> - renders - <form class="form" method="post" action="/createSpace.action" onsubmit="return true;" name="createSpace" id="createSpace">

This doesn't - 

<s:form action="createSpace!save.action" method="post" cssClass="form"> - renders - <form class="form" method="post" action="createSpace!save.action" onsubmit="return true;" id="createSpace_save">



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WW-2789) Struts tags and dynamic method invocation

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

Alvin Singh updated WW-2789:
----------------------------

    Description: 
Having issues with this version of struts and struts tags when trying to render.

For example when my action extention is .action the following should render the action attribute with the extension ".action". This works fine -

<s:form action="createSpace" method="post" cssClass="form"> - renders - <form class="form" method="post" action="/createSpace.action" onsubmit="return true;" name="createSpace" id="createSpace">

This doesn't - 

<s:form action="createSpace!save" method="post" cssClass="form"> - renders - <form class="form" method="post" action="createSpace!save" onsubmit="return true;" id="createSpace_save">



  was:
Having issues with this version of struts and struts tags when trying to render.

For example when my action extention is .action the following should render the action attribute with the extension ".action". This works fine -

<s:form action="createSpace" method="post" cssClass="form"> - renders - <form class="form" method="post" action="/createSpace.action" onsubmit="return true;" name="createSpace" id="createSpace">

This doesn't - 

<s:form action="createSpace!save.action" method="post" cssClass="form"> - renders - <form class="form" method="post" action="createSpace!save.action" onsubmit="return true;" id="createSpace_save">




Sorry I screwed up my second example - updated.

> Struts tags and dynamic method invocation
> -----------------------------------------
>
>                 Key: WW-2789
>                 URL: https://issues.apache.org/struts/browse/WW-2789
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.2
>         Environment: mac, jdk1.5, tomcat6
>            Reporter: Alvin Singh
>
> Having issues with this version of struts and struts tags when trying to render.
> For example when my action extention is .action the following should render the action attribute with the extension ".action". This works fine -
> <s:form action="createSpace" method="post" cssClass="form"> - renders - <form class="form" method="post" action="/createSpace.action" onsubmit="return true;" name="createSpace" id="createSpace">
> This doesn't - 
> <s:form action="createSpace!save" method="post" cssClass="form"> - renders - <form class="form" method="post" action="createSpace!save" onsubmit="return true;" id="createSpace_save">

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2789) Struts tags and dynamic method invocation

Posted by "Alvin Singh (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44674#action_44674 ] 

Alvin Singh commented on WW-2789:
---------------------------------

This problem seems to be confined to s:form tag (s:url works ok).

> Struts tags and dynamic method invocation
> -----------------------------------------
>
>                 Key: WW-2789
>                 URL: https://issues.apache.org/struts/browse/WW-2789
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.2
>         Environment: mac, jdk1.5, tomcat6
>            Reporter: Alvin Singh
>
> Having issues with this version of struts and struts tags when trying to render.
> For example when my action extention is .action the following should render the action attribute with the extension ".action". This works fine -
> <s:form action="createSpace" method="post" cssClass="form"> - renders - <form class="form" method="post" action="/createSpace.action" onsubmit="return true;" name="createSpace" id="createSpace">
> This doesn't - 
> <s:form action="createSpace!save" method="post" cssClass="form"> - renders - <form class="form" method="post" action="createSpace!save" onsubmit="return true;" id="createSpace_save">

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2789) Struts tags and dynamic method invocation

Posted by "Philip Luppens (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44607#action_44607 ] 

Philip Luppens commented on WW-2789:
------------------------------------

Hmm, I'm not sure I understand what you mean. As far as I know this is the expected behaviour. If you specify an action attribute that cannot be resolved as an action directly, then we'll just use the string directly in the form (so you can insert something like action="submit.php"). 

If you specify a valid action (as in: action name can be found) though, we'll provide some magic to create the correct form. If you need a different method, you'll have to use the method attribute.

Well, that's how I always understood it, and afaik, how it has always been. So I don't think it's a bug.

Please feel free to clarify - I might just have misunderstood/misread your report.

> Struts tags and dynamic method invocation
> -----------------------------------------
>
>                 Key: WW-2789
>                 URL: https://issues.apache.org/struts/browse/WW-2789
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.2
>         Environment: mac, jdk1.5, tomcat6
>            Reporter: Alvin Singh
>
> Having issues with this version of struts and struts tags when trying to render.
> For example when my action extention is .action the following should render the action attribute with the extension ".action". This works fine -
> <s:form action="createSpace" method="post" cssClass="form"> - renders - <form class="form" method="post" action="/createSpace.action" onsubmit="return true;" name="createSpace" id="createSpace">
> This doesn't - 
> <s:form action="createSpace!save.action" method="post" cssClass="form"> - renders - <form class="form" method="post" action="createSpace!save.action" onsubmit="return true;" id="createSpace_save">

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2789) Struts tags and dynamic method invocation

Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44611#action_44611 ] 

Dave Newton commented on WW-2789:
---------------------------------

I've definitely used it before; I'll also do a sanity check.

> Struts tags and dynamic method invocation
> -----------------------------------------
>
>                 Key: WW-2789
>                 URL: https://issues.apache.org/struts/browse/WW-2789
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.2
>         Environment: mac, jdk1.5, tomcat6
>            Reporter: Alvin Singh
>
> Having issues with this version of struts and struts tags when trying to render.
> For example when my action extention is .action the following should render the action attribute with the extension ".action". This works fine -
> <s:form action="createSpace" method="post" cssClass="form"> - renders - <form class="form" method="post" action="/createSpace.action" onsubmit="return true;" name="createSpace" id="createSpace">
> This doesn't - 
> <s:form action="createSpace!save" method="post" cssClass="form"> - renders - <form class="form" method="post" action="createSpace!save" onsubmit="return true;" id="createSpace_save">

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WW-2789) Struts tags and dynamic method invocation

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

James Holmes resolved WW-2789.
------------------------------

       Resolution: Duplicate
    Fix Version/s: 2.1.3

The duplicate issue was just resolved. If for some reason you still have this issue, please let us know.

> Struts tags and dynamic method invocation
> -----------------------------------------
>
>                 Key: WW-2789
>                 URL: https://issues.apache.org/struts/browse/WW-2789
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.2
>         Environment: mac, jdk1.5, tomcat6
>            Reporter: Alvin Singh
>             Fix For: 2.1.3
>
>
> Having issues with this version of struts and struts tags when trying to render.
> For example when my action extention is .action the following should render the action attribute with the extension ".action". This works fine -
> <s:form action="createSpace" method="post" cssClass="form"> - renders - <form class="form" method="post" action="/createSpace.action" onsubmit="return true;" name="createSpace" id="createSpace">
> This doesn't - 
> <s:form action="createSpace!save" method="post" cssClass="form"> - renders - <form class="form" method="post" action="createSpace!save" onsubmit="return true;" id="createSpace_save">

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2789) Struts tags and dynamic method invocation

Posted by "Lukasz Racon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44675#action_44675 ] 

Lukasz Racon commented on WW-2789:
----------------------------------

Alvin,
looks like this is a duplicate of these issues:
https://issues.apache.org/struts/browse/WW-2768
https://issues.apache.org/struts/browse/WW-2727

> Struts tags and dynamic method invocation
> -----------------------------------------
>
>                 Key: WW-2789
>                 URL: https://issues.apache.org/struts/browse/WW-2789
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.2
>         Environment: mac, jdk1.5, tomcat6
>            Reporter: Alvin Singh
>
> Having issues with this version of struts and struts tags when trying to render.
> For example when my action extention is .action the following should render the action attribute with the extension ".action". This works fine -
> <s:form action="createSpace" method="post" cssClass="form"> - renders - <form class="form" method="post" action="/createSpace.action" onsubmit="return true;" name="createSpace" id="createSpace">
> This doesn't - 
> <s:form action="createSpace!save" method="post" cssClass="form"> - renders - <form class="form" method="post" action="createSpace!save" onsubmit="return true;" id="createSpace_save">

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2789) Struts tags and dynamic method invocation

Posted by "Philip Luppens (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44609#action_44609 ] 

Philip Luppens commented on WW-2789:
------------------------------------

Err .. woops. Indeed. Serious brainfart from my side.

action="createSpace!save" should work then. If not, I agree it's a bug or at least something that we could or should add. But I could have sworn I've used this before in WW long time ago, so it should work.

> Struts tags and dynamic method invocation
> -----------------------------------------
>
>                 Key: WW-2789
>                 URL: https://issues.apache.org/struts/browse/WW-2789
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.2
>         Environment: mac, jdk1.5, tomcat6
>            Reporter: Alvin Singh
>
> Having issues with this version of struts and struts tags when trying to render.
> For example when my action extention is .action the following should render the action attribute with the extension ".action". This works fine -
> <s:form action="createSpace" method="post" cssClass="form"> - renders - <form class="form" method="post" action="/createSpace.action" onsubmit="return true;" name="createSpace" id="createSpace">
> This doesn't - 
> <s:form action="createSpace!save.action" method="post" cssClass="form"> - renders - <form class="form" method="post" action="createSpace!save.action" onsubmit="return true;" id="createSpace_save">

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WW-2789) Struts tags and dynamic method invocation

Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44608#action_44608 ] 

Dave Newton commented on WW-2789:
---------------------------------

The "method" attribute on the form tag is HTTP method, though.

> Struts tags and dynamic method invocation
> -----------------------------------------
>
>                 Key: WW-2789
>                 URL: https://issues.apache.org/struts/browse/WW-2789
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.1.2
>         Environment: mac, jdk1.5, tomcat6
>            Reporter: Alvin Singh
>
> Having issues with this version of struts and struts tags when trying to render.
> For example when my action extention is .action the following should render the action attribute with the extension ".action". This works fine -
> <s:form action="createSpace" method="post" cssClass="form"> - renders - <form class="form" method="post" action="/createSpace.action" onsubmit="return true;" name="createSpace" id="createSpace">
> This doesn't - 
> <s:form action="createSpace!save.action" method="post" cssClass="form"> - renders - <form class="form" method="post" action="createSpace!save.action" onsubmit="return true;" id="createSpace_save">

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.