David Smith-2 wrote:
> 
> 
> No need to edit any *.xml files. 
> 
> Your webapp already knows what it's context path is when the request
> comes in.  The expression I wrote is used in jsp pages to compose server
> absolute links to resources like jsps, html pages, images, javascript,
> css, etc., ...  Consider it in the context of:
> 
>  ${pageContext.request.contextPath}/jsp/any.jsp Click here to
> (whatever) 
> 
> If you are working with a servlet instead of a jsp, it would be
> request.getContextPath() + "/jsp/any.jsp" to build links where request
> is an instance of javax.servlet.http.HttpServletRequest.
> 
> --David
> 
> 

Great, thanks, it answered my question, it works now and I'm almost
absolutely happy. :-)
-- 
View this message in context: 
http://www.nabble.com/Path-tp20899470p20900779.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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

Reply via email to