Anuj Agrawal wrote:
This may be a rather simple question.  But i couldn't find any info
online (maybe i'm looking in the wrong places).

I'd like my jsp page to be able to access it's URL.  What i mean is
this:

If i arrived at test.jsp by going to
http://mydomain.com/test.jsp?id=1&s=2, then i would like to know how to
display the full url (http://mydomain.com/test.jsp?id=1&s=2) on the
page or at least have access to it in some variable.

The servlet spec would be useful for this. You'd want to start with request.getRequestURL(), and then add request.getQueryString() if there was one.


--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]

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



Reply via email to