Kevin,
Thanks for replying. I made doubly sure that I called super.init(config) in
the init method (I read the Servlets book by Jason Hunter three years ago
and he beat it into me like a mantra). I will check my code to make sure I
have not introduced any subtle bugs since I subclassed ActionServlet.
Regards
Jim.
----- Original Message -----
From: "Kevin Robair" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, June 06, 2003 2:31 PM
Subject: Re: Subclassing ActionServlet
> I just did the same thing, but had no problems. Here
> is what I did:
>
> public class ExtendedActionServlet extends
> org.apache.struts.action.ActionServlet
> {
>
> /** Initializes the servlet.
> */
> public void init(ServletConfig config) throws
> ServletException
> {
> super.init(config);
>
> App224DataManager.setContextBeans(config.getServletContext());
> }
>
>
> }
>
>
> Make sure you call super.init(config) , I bet that is
> your problem.
>
> -Kevin
>
> --- Jim Collins <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> >
> > I have just modified an application where I now
> > subclass ActionServlet. The
> > problem is my JSP's that use resources now throws an
> > exception about not
> > being able to find the key. Are there any issues
> > with subclassing
> > ActionServlet that I should be aware of.
> >
> > Thanks
> >
> > Jim.
> >
> >
> >
> ---------------------------------------------------------------------
> > 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]