On Fri, 22 Mar 2002, John Baker wrote:

> Is it possible to get at request.getContextPath() like this:
> 
> <c:out value="${request.contextPath}"/>

'contextPath' in that expression is a scoped attribute.  If you want to
access properties of the HttpServletRequest object itself, you need to do
so through 'pageContext'.  That is:

  ${pageContext.request.contextPath}

-- 
Shawn Bayern
Author, "JSP Standard Tag Library"  http://www.jstlbook.com
(coming this summer from Manning Publications)


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

Reply via email to