in your jsp, try application.getRealPath(). 


> -----Original Message-----
> From: Randahl Fink Isaksen [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, February 08, 2001 6:32 AM
> To:   Orion-Interest
> Subject:      The best way to get the context path
> 
> Petr Podsednik wrote:
> <img src="<%=request.getContextPath()%>/images/app-logo.gif" ......
>  
>  
> - I know that you often need your own context path in order to return a
> correct link to some resource in your web-app, but is there not a better
> way than calling request.getContextPath() ? It seems odd to me to ask for
> the context path on the request object - I am looking for something like
>  
> pageContext.getServletContext().getInitParameter("the application context
> path")
>  
> but I have not been able find out how to make this work...
>  
>  
> Any comments / suggestions would be appreciated
>  
> R.
> 

------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please immediately 
notify the sender by e-mail at the address shown.  This e-mail transmission may 
contain confidential information.  This information is intended only for the use of 
the individual(s) or entity to whom it is intended even if addressed incorrectly.  
Please delete it from your files if you are not the intended recipient.  Thank you for 
your compliance.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Reply via email to