RE: Overriding the init() method in the Action Servlet.

2005-08-19 Thread Mark Benussi
In the web.xml your servlet for handling struts requests should currently be org.apache.struts.actions.ActionServlet. Change this class to you own that extends this class and then you can override any methods -Original Message- From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED] Sent: 20 A

Re: Overriding the init() method in the Action Servlet.

2005-08-20 Thread Sudhaker Raj
You can try struts-plugin to execute startup code. I would avoid making changes in core behaviors if possible without changing them. On 8/20/05, Anuradha S.Athreya <[EMAIL PROTECTED]> wrote: > Hello, > > > > I understand it is possible to override the init() method in the Action > Servlet class

Re: Overriding the init() method in the Action Servlet.

2005-08-20 Thread Laurie Harper
Another option is to have your startup code in its own, separate servlet (or you could use a context listener). Unless you specifically need to alter behaviour of the standard ActionServlet, keeping your startup code separate probably makes more sense. L. Sudhaker Raj wrote: You can try stru

Re: Overriding the init() method in the Action Servlet.

2005-08-20 Thread Wendy Smoak
From: "Anuradha S.Athreya" <[EMAIL PROTECTED]> I understand it is possible to override the init() method in the Action Servlet class. How can I go about achieving this? What are the changes that I need to make in the web.xml. I need to introduce this in my application, since I need to initiali

Re: Overriding the init() method in the Action Servlet.

2005-08-20 Thread Joe Germuska
At 12:23 PM -0400 8/20/05, Sudhaker Raj wrote: You can try struts-plugin to execute startup code. I would avoid making changes in core behaviors if possible without changing them. I would agree with this, and with Wendy's post. If you need certain things to happen at servlet initialization ti