Hi,
This kind of question is best asked of [EMAIL PROTECTED]
However, an easy way to get this behavior is to override
the init(ServletConfig), rather than init(), and forget to
call "super.init(config)" as indicated in the API doc for
GenericServlet.
Hope this helps.
Larry
-----Original Message-----
From: Zsolt Horvath [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 7:54 AM
To: [EMAIL PROTECTED]
Subject: getInitParameter
Hi !
I have a web.xml file with this lines:
<context-param>
<param-name>valami</param-name>
<param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value>
<description>
The database driver's type.
</description>
</context-param>
<servlet-name>getInit</servlet-name>
<description>
No desc.
</description>
<servlet-class>getinit.mainServlet</servlet-class>
<init-param>
<param-name>valami</paramName>
<param-value>com.mycompany.myactions.ListOrdersAction</param-value>
</init-param>
</servlet>
How can I acces the valami variable inside a servlet (in JSP works). I use
getServletConfig.getInitParameter("valami") and I always get null !!! I don't
understand !!!
Thanx.