Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Resolved: (WW-1682) Invalid action generated by s:form

    0 answers - 1510 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

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

Re: Resolved: (WW-1682) Invalid action generated by s:form


max 4000 letters.
Your nickname that display:
In order to stop the spam: 6 + 5 =
QUESTION ON "Java"

EMSDN.COM