tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Larsen" <lar...@qec.com>
Subject Re: taglib and contextPath
Date Mon, 01 Apr 2002 15:36:02 GMT

HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();

This request object can then be used just like in a servlet.

Jeff

----- Original Message ----- 
From: "Zsolt Koppany" <zkoppany@web.de>
To: <tomcat-user@jakarta.apache.org>
Sent: Sunday, March 31, 2002 3:21 AM
Subject: taglib and contextPath


> Hi,
> 
> from a taglib class I have to write links (<A HREF=...</A>) with context 
> dependent paths. From a servlet I use request.getContextPath()...
> How can I do the same from a taglib class?
> 
> -- 
> Zsolt Koppany
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message