HttpRequest.getContextPath() returns the  portion of the request URI that
indicates the context of the request.

-----Original Message-----
From: John Golubenko [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 2:26 PM
To: [EMAIL PROTECTED]
Subject: Re: to switch contexts, do you have to change all your JSP
URL's?


<%= request.getRequestURI() %> will return current URL.



>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 2/6/01, 11:18:04 AM, "Chris Ward" <[EMAIL PROTECTED]> wrote
regarding to switch contexts, do you have to change all your JSP URL's?:


> Is there a way to code the URL's in the JSP pages so that they don't care
> what the context is? If I have contexts for webapps/foo1 and
webapps/foo2,
> how do I write the URL's so that I don't have to change the URL from
> "foo1/myservlet" to "foo2/servlet" if I change the context that it is run
> from, or want to have both running?

> Chris

> ----------------------------------
> Chris Ward - Developer
> @ integral business solutions
> tel: 651.631.3144
> fax: 651.631.2544
> email: [EMAIL PROTECTED]
> web: www.go-integral.com


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

NOTICE:  This communication may contain confidential or other privileged
information.  If you are not the intended recipient, or believe that you
have received this communication in error, please do not print, copy,
retransmit, disseminate, or otherwise use the information.  Also, please
indicate to the sender that you have received this email in error, and
delete the copy you received.  Any communication that does not relate to
official Columbia business is that of the sender and is neither given nor
endorsed by Columbia.  Thank you.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to