i am trying set
servlet init parameters for
jsp like...
where my jsp name is hobbypage.jsp
when i am trying to execute this code
<%@ page import="java.util.*" %>
<%! public void jspInit(){
ServletConfig c = getServletConfig();
String s = c.getInitParameter("adminEmail");
System.out.println(s);
}
%>
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<h3>hello
testing jsp init parameters</h3>
<br>
<%= config.getInitParameter("adminEmail") %>
</BODY>
</HTML>
then its priting null at server output and in the generated html
what's wrong with the code? am i doing wrong?