Re: servlet redirect




"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

.



Relevant Pages

  • Re: Problems moving files to trash when on different file systems
    ... Oliver wrote: ... All commands are being executed from the client unless otherwise ... > quick and dirty band-aid however, nautilus can be confiured to bypass ... > the trash when deleting files. ...
    (comp.unix.solaris)
  • Re: Terminalserver Lizenzprotokollfehler
    ... das Löschen des Lizenztoken vom Client (Knowledge Base ... >Hallo Oliver, ... >muss der Ts Lic dem TS vorgegeben werden: ...
    (microsoft.public.de.german.win2000.termserv.apps)
  • Re: Migration von Groupwise5.2 nach E2k3
    ... > Hallo Oliver, ... aber als Groupwiseclient nutze ich 5.2 ich habe ... > der Novell-site finde ich nur Patches und den 6er Client. ...
    (microsoft.public.de.exchange)
  • Re: backdating reports
    ... Yeah, it is doing what the client told you to do, and the client is telling ... I'd certainly not lie about it in court. ... before they pull that stuff. ...
    (sci.med.transcription)
  • Re: Drucker Standardeinstellungen
    ... Der Drucker ist auf dem Server und dem CLient mit dem gleichen treiber installiert und wird auch einwandfrei verbunden. ... Gruss Oliver ...
    (microsoft.public.de.german.windows.terminaldienste)