[ 
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.

Reply via email to