You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by JCO <jo...@gmail.com> on 2006/10/26 11:33:55 UTC
Get current Action using Tiles
Hello,
I want to know the current Action through the request.getRequestURI(), but
I'm using Tiles and I get:
/jguiri/jsp/layouts/layoutDetalle.jsp (layoutDetalle.jsp is my Tiles
layout, not the real URI)
but really the URL I see is:
http://localhost:8080/jguiri/aplicaciones.do?op=Detalle&id=22
How can I obtain that URL to extract the Action name? is this the best
option to know the current Action?
Thanks!
--
View this message in context: http://www.nabble.com/Get-current-Action-using-Tiles-tf2512896.html#a7007953
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Get current Action using Tiles
Posted by JCO <jo...@gmail.com>.
Thanks, I solved this using:
request.getAttribute("javax.servlet.forward.servlet_path");
apetrelli wrote:
>
> JCO ha scritto:
>> Hello,
>>
>> I want to know the current Action through the request.getRequestURI(),
>> but
>> I'm using Tiles and I get:
>>
>> /jguiri/jsp/layouts/layoutDetalle.jsp (layoutDetalle.jsp is my Tiles
>> layout, not the real URI)
>>
>
> Where are you calling request.getRequestURI()?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Get-current-Action-using-Tiles-tf2512896.html#a7010477
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Get current Action using Tiles
Posted by Antonio Petrelli <ap...@apache.org>.
JCO ha scritto:
> Hello,
>
> I want to know the current Action through the request.getRequestURI(), but
> I'm using Tiles and I get:
>
> /jguiri/jsp/layouts/layoutDetalle.jsp (layoutDetalle.jsp is my Tiles
> layout, not the real URI)
>
Where are you calling request.getRequestURI()?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org