I have the same problem
The web.xml is :
<servlet>
<servlet-name>TestJspPage</servlet-name>
<jsp-file>/hello.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>TestJspPage</servlet-name>
<url-pattern>/hello.do</url-pattern>
</servlet-mapping>
<context-param>
<param-name>city</param-name>
<param-value> New Delhi</param-value>
</context-param>
And I'm trying to use this parameter in my hello.jsp in this way
<%= application.getInitParameter("city") %>
When I'm accessing hello.do
it is giving me null
Can anybody help me out??
Thanks