<p>When you're using Tiles with Struts and do...</p>

<pre><code>request.getRequestURL()
</code></pre>

<p>...you get the URL to e.g. <code>/WEB-INF/jsp/layout/newLayout.jsp</code> instead of the real URL that was entered/clicked by the user, something like <code>/context/action.do</code>.</p>

<p>In newer Struts versions, 1.3.x and after, you can use the <a href="http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&amp;f=58&amp;t=012300" rel="nofollow noreferrer">solution mentioned on javaranch</a> and get the real URL using the request attribute <a href="http://struts.apache.org/1.x/apidocs/org/apache/struts/Globals.html#ORIGINAL_URI_KEY" rel="nofollow noreferrer"><code>ORIGINAL_URI_KEY</code></a>.</p>

<p>But how to do this in Struts 1.2.x?</p>

I don't know if Struts 1.2.x has a similar Globals constant, but you could create your own in at least two ways:
get the original request URL in the Action and set it on the request, and call that from the JSP
use a Servlet Filter to do the same thing