What about using JavaScript : <script language="JavaScript"> alert(document.referrer); // Displays the URL of the location that referred the user to the current page. </script>
See ya Alain -----Message d'origine----- De : Reinhard Moosauer [mailto:[EMAIL PROTECTED] Envoy� : vendredi, 22. ao�t 2003 09:52 � : Tomcat Users List Objet : Re: Fetching protected URL in Tomcat Hi, how about getRequestURI()? 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, Reinhard 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ********************************************************************** 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. ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
