Hi!

I would like to specify the "action" attribute of an <s:submit/> such that it 
points to an action in a namespace other than which the jsp is in:

struts.xml:
 <package name="p" extends="root" namespace="/p">
...
  <action name="MyAction" class="package1.MyAction">
...
</package>


/p/p2/x.jsp:

<s:form action="...">
...
<s:url action="../MyAction"/> <%-- WORKS, but not an s:submit --%>

<%-- NEITHER OF THESE WORKS: --%>
<s:submit action="../MyAction"/>
<s:submit action="/p/MyAction"/>
<s:submit action="MyAction"/>


Any ideas?

Thanks,
Agoston


      

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to