[
https://issues.apache.org/struts/browse/WW-1682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Don Brown resolved WW-1682.
---------------------------
Resolution: Not A Problem
Yeah, I agree it can be confusing since "action" has a specific meaning for
forms. If you can think of a way we could better clarify this in our docs,
open a ticket and let us know.
> Invalid action generated by s:form
> ----------------------------------
>
> Key: WW-1682
> URL: https://issues.apache.org/struts/browse/WW-1682
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.0.4
> Environment: java 6, tomcat 5.5.17, windows xp
> Reporter: Dariusz Wojtas
> Priority: Critical
>
> I found it first using snapshot JARS from 21st of January, but I also
> verified it using snapshot JARs from 27th of January (downloaded from apache
> nightlies).
> In my JSP page I put such form:
> <s:form id="uwagiForm" action="/uwagi/uwagiSave" theme="ajax" method="POST">
> ...
> </s:form>
> The url that invokes that page is:
> http://localhost:8080/esu/uwagi/uwagiDodaj.action?id=1111
> But the form renders itself this way:
> <form method="post" action="/esu/uwagi//uwagi/uwagiSave.action"
> name="/polisy/uwagiSave" id="uwagiForm" namespace="/uwagi">
> </form>
> in my struts mappings I have
> <package name="uwagi" namespace="/uwagi" extends="struts-default">
> <action name="uwagiSave" class="esu.struts.mypackage.UwagiAction">
> ....
> </action>
> </package>
> I tried various combinations, specifying action only, specifying namespace
> and name only, all 3 props. It always misbehaves.
> In some cases it took the name of the request URL as the action value.
> I also tried to add the '.action' postfixes to values given the form. It
> still did not work.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.