struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnson, Nathaniel" <natjo...@indiana.edu>
Subject RE: getting the servlet context
Date Mon, 01 Oct 2001 19:57:41 GMT
I have tried that and it fails... when I debug, it says that pageContext is
returning null.  Is there something that I have to do to enable page context
in the tag class or the jsp using the tag?

-----Original Message-----
From: Peter Alfors [mailto:peter.alfors@hksystems.com]
Sent: Monday, October 01, 2001 2:49 PM
To: struts-user@jakarta.apache.org
Subject: Re: getting the servlet context


try

  pageContext.getServletContext()

HTH,
    Pete

"Johnson, Nathaniel" wrote:

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

Mime
View raw message