What do you need to get the ActionServlet in your ActionForm? Regards, PQ "This Guy Thinks He Knows Everything" "This Guy Thinks He Knows What He Is Doing"
-----Original Message----- From: bkafka [mailto:[EMAIL PROTECTED]] Sent: January 30, 2003 4:28 PM To: Struts Users Mailing List Subject: Re: Forms and getting the ActionServlet from the form The HttpServletRequest is not available from something extending ActionForm. I do use that when I'm in an Action. ----- Original Message ----- From: "David Graham" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 30, 2003 12:33 PM Subject: Re: Forms and getting the ActionServlet from the form > You could use the HttpServletRequest to get the HttpSession to get the > ServletContext. > > David > > > > > > > >From: "bkafka" <[EMAIL PROTECTED]> > >Reply-To: "bkafka" <[EMAIL PROTECTED]> > >To: <[EMAIL PROTECTED]> > >Subject: Forms and getting the ActionServlet from the form > >Date: Thu, 30 Jan 2003 12:24:01 -0700 > > > >Hi, > > > > I have a Form which extends ActionForm and need to get the > >ActionServlet instance. When I > >attempt to do this using this.getServlet() method I am returned a null > >reference. My actual goal is to get the ServletContext which I should be > >able to get from the ActionServlet instance. Anybody have an idea why I'd > >be getting back a null reference? Using Struts 1.1/Tomcat 4.1.8/jdk1.4.1 > > > > > > > _________________________________________________________________ > Add photos to your messages with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]