tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hertenstein Alain <>
Subject RE : Fetching protected URL in Tomcat
Date Fri, 22 Aug 2003 08:43:13 GMT
What about using JavaScript :

<script language="JavaScript">
alert(document.referrer); // Displays the URL of the location that referred
the user to the current page.

See ya

-----Message d'origine-----
De : Reinhard Moosauer [] 
Envoyé : vendredi, 22. août 2003 09:52
À : Tomcat Users List
Objet : Re: Fetching protected URL in Tomcat


how about 
Shouldn't it give the uri of the original request?

(BTW: Tomcat has to store the original uri somewhere, otherwise it couldn'tr
 edirect later. Maybe a request attribute?)

Hope that helps,


Am Donnerstag, 14. August 2003 16:30 schrieb Shapira, Yoav:
> Howdy,
> >How do I, in login.jsp code, fetch information about the URL the user
> was
> >trying to go to, when we was sent to login.jsp.
> >Using WebLogic you can read the "j_target_url" attribute from session 
> >scope, but how do you do it on (JBoss/)Tomcat??
> I believe the j_target_url was a proprietary add-on attribute WebLogic 
> added, not part of the servlet spec, and that there's no equivalent in 
> tomcat at this time.  I could be wrong, however ;)  Even if I'm right, 
> adding this attribute wouldn't be a big deal I imagine: want to 
> contribute a patch? ;)
> Yoav Shapira
> This e-mail, including any attachments, is a confidential business 
> communication, and may contain information that is confidential, 
> proprietary and/or privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not be saved, copied, 
> printed, disclosed or used by anyone else.  If you are not the(an) 
> intended recipient, please immediately delete this e-mail from your 
> computer system and notify the sender.  Thank you.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

 This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

View raw message