Dear Hen,

Write a servletFilter and include the below code snippet in your doFilter method

*String uri=(String)((HttpServletRequest)request).getAttribute("uri");
if(uri==null)
{
System.out.println("Inside uri==null ");
String requestURL=((HttpServletRequest)request).getRequestURI();
((HttpServletRequest)request).setAttribute("uri",requestURL); }*


Then u can get the requestURL in the jsp using request.getAttribute("uri");

--Thanks
Yogendrababu


Henri Yandell wrote:


[more a generic servlet question than struts specific, but no jsr user lists]

I've a page which wants to know the url that was used to request it.

If I use the servlet API, all I find is the jsp file in question and not
the .do [or in use of tiles, I presume the top-most .do]. Is this
impossible or does something get stored in the request scope to specify
the original request?

Hen


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






Reply via email to