In the header file, try request.getRequestURL() - it should give you the
page that was called.  Tiles effectively does a jsp:insert, which means that
the request parameters are the same for any included tiles.

-Rob

-----Original Message-----
From: Kevin Tung [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:17 PM
To: Struts-user
Subject: [Tiles] loses current url


Is there anyway for a tiles component to detect the URL that was used to
call up the page in the first place?

For example,

http://myhost/mypage1.jsp
http://myhost/mypage2.jsp

may both contain a tiles:insert tag that points to /myheader.jsp

is there anyway for the header file to detect which of the two url's were
called by the user?  Without adding code in mypage1 & mypage2 to save the
url in the session/request/page/application scope.  And without adding
request parameters to the tiles:insert tag.

Is this possible with Struts 1.1b3?

Thanks,
Kevin



---------------------------------------------------------------------
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