First, I think you mean super.init(config) and second, there is no need for that if you call the "init()" method rather than init(ServletConfig config). See the javadoc...


<quote>

public void init()
throws ServletException
A convenience method which can be overridden so that there's no need to call super.init(config).


Instead of overriding init(ServletConfig), simply override this method and it will be called by GenericServlet.init(ServletConfig config). The ServletConfig object can still be retrieved via getServletConfig().
</quote>


Jake

At 08:58 AM 6/9/2003 -0400, you wrote:
Don't forget to call super.init() first.

-----Original Message-----
From: bilal sulehri [mailto:[EMAIL PROTECTED]
Sent: June 9, 2003 5:43 AM
To: [EMAIL PROTECTED]
Subject: re. to Thomas.Rimmele( I used param tag just as u said)




>From: [EMAIL PROTECTED] >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: RE: having problem with getInitParameter() >Date: Sat, 7 Jun 2003 18:03:08 +0200 > >Hy, >I think your forgot the <init-param>-tag.... > >Greethings, Thomas > > <servlet> > <servlet-name> > xxx > </servlet-name> > <servlet-class> > yyy > </servlet-class> > <init-param> > <param-name>key</param-name> > <param-value>value</param-value> > </init-param> > > </servlet> > >-----Original Message----- >From: bilal sulehri [mailto:[EMAIL PROTECTED] >Sent: Samstag, 7. Juni 2003 17:41 >To: [EMAIL PROTECTED] >Subject: having problem with getInitParameter() > > >Hi, I m having problem with the the get InitParameter method of >ServletConfig class, >I m adding tags as following in both tomcat_home/conf/web.xml and >/tomcat_home/webapps/ROOT/web-inf/web.xml but it's not working > ><servlet> > ... > ... > <param-name>pname</param-name> > <param-value>pvalue</param-value> ></servlet> > >_________________________________________________________________ >Tired of spam? Get advanced junk mail protection with MSN 8. >http://join.msn.com/?page=features/junkmail > > >--------------------------------------------------------------------- >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] >

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to