Hi Manoj: Does your getElement() method depend on the individual request? If not you could declare it as a static method and then simply access it using MyXMLParserServlet.getElement(). Otherwise that method may need a request parameter in its signature or something else - depending on your needs..
Hth, Geeta > -----Original Message----- > From: manoj JC [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 24, 2004 10:17 AM > To: [EMAIL PROTECTED] > Subject: Re: How to execute an initialization by using another servlet > entry in web.xml > > > Thank you for answering the first part of the question. > > What I am trying to do is, this MyXMLParserServlet(the new > entry in web.xml) > parses an XML file. From my main ActionServlet.process() , I > want to do > something like MyXMLParserServlet.getElement() . I won't be > calling this > method from the init() method of my actionServlet. > > Thanks again. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]