There will be a request attribute under the name 
"org.apache.struts.action.mapping.instance". Call getPath() on that (after 
casting to an ActionMapping).  I'd take a look around to see if there's a 
static method somewhere that gets this for you rather than coding the name of 
the attribute because should it ever change in a future Struts version and you 
upgrade, your code would break.  But, that should work for you now.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Mon, January 24, 2005 10:58 am, Gianpiero Caretti said:
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to