It should have a namespace attribute, like all the other tags with action & method attributes, but I don't see it in the documentation. You might give it a try, just in case it's just un-documented.
<s:submit action="MyAction" namespace="/p"/> Otherwise, the more common way would be: <s:form action="MyAction" namespace="/p"> <s:submit/> </s:form> (*Chris*) On Mon, Jan 31, 2011 at 10:59 PM, Agoston Bejo <bejo...@yahoo.com> wrote: > > > 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 > >