Hi, Jacob.

You may want to use
javax.servlet.http.HttpUtils.getRequestURL(HttpServletRequest).

Hiran

> -----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]>

Reply via email to