Hi, Milt.

You are right. I had a look into JSDK 2.2, but Tomcat is about 2.3, and
there the class is deprecated. So instead of the below mentioned approach
one will have to glue the pieces together from the HttpServletRequest
manually.

Hiran

> -----Urspr�ngliche Nachricht-----
> Von: Milt Epstein [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 27. Juni 2002 15:47
> An: Tomcat Users List
> Betreff: Re: AW: Getting the map of the webapp
> 
> 
> On Thu, 27 Jun 2002, Software AG wrote:
> 
> > Hi, Jacob.
> >
> > You may want to use
> > javax.servlet.http.HttpUtils.getRequestURL(HttpServletRequest).
> 
> I believe the whole HttpUtils class has been deprecated.  Some of the
> methods have been added to the request interface.
> 
> 
> > > -----Urspr�ngliche Nachricht-----
> > > Von: Jacob Vennervald Madsen [mailto:[EMAIL PROTECTED]]
> > > Gesendet: Donnerstag, 27. Juni 2002 14:19
> > > An: Tomcat Users List
> > > Betreff: Getting the map of the webapp
> > >
> > >
> > > Hi List
> > >
> > > Is there any way I can get the path to the current webapp?
> > >
> > > Example:
> > > My webapp is called test.
> > > This means that when I want to use that webapp the url should look
> > > something like this
> > > http://<the_hostname_of_the_machine>/test/index.html
> > > Is there any way can get the name test in my servlet so I 
> want have to
> > > hardcode it?
> > >
> > > I know how to get the real filesystem path but not the URL path.
> > >
> > > Jacob
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >
> > --
> > To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>
>
>

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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


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

Reply via email to