Hello,
I have created a simple
Servlet that reads init parameter.
Here are the lines from the servlet doGet method:
String url = getServletConfig().getInitParameter("URL");
out.println("url: " + url + "<br>");
and here is the relevant web.xml:
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>com.mycompany.ADPServlet</servlet-class>
<init-param>
<param-name>URL</param-name>
<param-value>
test</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
When I run the Servlet the output is:
url: null
Any idea why...?