You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Gianpiero Caretti <gi...@nch.it> on 2005/01/24 16:58:25 UTC
How to get the input action path?
Hi All,
I need help about struts and tiles.
I have an application using tiles and I have a jsp page that can be used as
output page for several different actions. In this page I'd like to have a
link to recall the input action (with different parameters). Something like
"ActionMapping.getPath()" method.
The problem is that I don't know how to identify the input action directly
into the JSP!
In other words, Let's suppose I have 2 actions:
<action path="/act1"
...>
<forward name="success" path="mypage.jsp"/>
</action>
<action path="/act2"
...>
<forward name="success" path="mypage.jsp"/>
</action>
How can I get the "/act1.do" or "/act2.do" into the JSP page?
I have tried request.getRequestURI() but, as I use tiles, I always receive the
URI of the main layout page (E.g. /miro/pages/layout/mainLayout.jsp)
Thanks for the help,
gianpiero
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org