Resolved: (WW-1682) Invalid action generated by s:form
0 answers - 1510 bytes -

[ ]
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:
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="PST">
</s:form>
The url that invokes that page is:
But the form renders itself this way:
<form method="post" 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="">
</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.