I got it to work... thanks to all... the problem was that I was trying to
get the pageContext in the tags constructor and I guess in is not available
until the doStartTag() method.  I am new the this environment.

-----Original Message-----
From: Thomas Schnelle [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 01, 2001 3:00 PM
To: [EMAIL PROTECTED]
Subject: AW: getting the servlet context


Try this
ServletContext con = pageContext.getServletContext();
regards
Thomas

-----Ursprüngliche Nachricht-----
Von: Johnson, Nathaniel [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 1. Oktober 2001 21:49
An: '[EMAIL PROTECTED]'
Betreff: getting the servlet context


Does anyone know how to get the servletContext from within a custom tag
(public class MyTag extends SupportTag...)

Thanks!
Nate



Reply via email to