Re: servlet redirect
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Wed, 24 May 2006 21:03:26 GMT
"SMC" <seanm@xxxxxxxxxxxx> wrote in message news:pan.2006.05.23.02.32.21.673486@xxxxxxxxxxxxxxx
On Tue, 23 May 2006 11:57:45 +1000, Bob wrote:
when you use a redirect in a servlet is there some way to get the address of
the page it redirected from.
You could check the Referer header:
request.getHeader("Referer")
Note though that this info comes from the client, who can lie to you. So don't count on it for security purposes; only use it to provide a convenient but non-critical feature to the user.
- Oliver
.
- References:
- servlet redirect
- From: Bob
- Re: servlet redirect
- From: SMC
- servlet redirect
- Prev by Date: Re: Connect to access
- Next by Date: NetBeans 5.5 beta
- Previous by thread: Re: servlet redirect
- Next by thread: Exception in creating InitialContext.
- Index(es):
Relevant Pages
|