thanks Chris and Jason, you where write. I did not see this methode!
Rainer > Rainer, > > Chris wasn't saying that Action extends HttpServlet, he was letting you know > that a method called getServlet() exists in Action that will get you the > reference to the Servlet associated with the Action (the ActionServlet). > Check out the javadocs for Action and you will see what he means: > http://jakarta.apache.org/struts/api/org/apache/struts/action/Action.html > > Jason > > -----Original Message----- > From: rainer juenger [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 09, 2002 1:16 PM > To: Struts Users Mailing List > Subject: Re: ServletContext in a Action > > > Hi Chris > > > >That's easy: > >getServlet().getServletContext() > >getServlet is in the Action class that you're extending... > > nope, Action does not extend HttpServelt but Object ... > there for getServlet() can not be used. > > Rainer > > > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

