tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Trollinger" <>
Subject Using the request object and EL
Date Mon, 12 Apr 2004 11:14:19 GMT
I have a jsp page that has the following code

<%@ taglib uri="" prefix="c" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="tag" %>
      <p>This shows the usage of a tag file</p>
      request as EL: ${request.contextPath} <br/>
      request using page context as EL:
${pageContext.request.contextPath} <br/>
      request as scriptlet: <%= request.getContextPath() %><br/>
      param is: ${param.test}<br/>
      <p><a href="${pageContext.request.contextPath}">Home</a>

This is my tags code 
Context path via request is:${request.contextPath}<br/>

I thought that according the to spec that the request was an implicit
object for both the jsp page and the tag file but I can not get it to
work in either.  Am I doing something wrong?

I am using the latest from cvs as of Friday morning



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message