tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: URL Redirect in Tomcat 6
Date Thu, 10 Dec 2009 23:07:14 GMT
Hash: SHA1

To whom it may concern,

On 12/10/2009 12:38 AM, bharati wrote:
>  Iam using Tomcat 6. In my applicaion, when Users entered any url like
> ''  then it will check for the status of the User.

Where does a user enter such a URL? Into the web browser's address bar?
If so, your application is not doing anything in this case (since
presumably the request will go to

> If he is
> Inactive, then it will send a http packet to redirect to the particular URL:
> like ""  . Tomcat is listening to this port
> 8080. 

Okay, sounds good.

> My question is: how do I get the url from tomcat..?

Could it be as simple as request.getRequestURL()? This will return
"" in the above example. If you're trying to
get the string "", you'll probably have to try:


(note the intentional, historic misspelling of "referer")

This may be NULL if the client has been configured not to send the URL
of the referring page, though.

Is that what you were looking for? I agree with the other responses that
your question was quite unclear.

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message