I have overridden jspInit() to access the
servlet init config parameters of the
Jsp's generated servlet
<%!
public void jspInit() {
System.out.println("Inside jspInit()");
ServletConfig config = getServletConfig();
ServletContext context = getServletContext();
context.log("Start: jspInit() ");
context.log("JSP:"+config.getInitParameter("JSP_SERVLET_CONFIG_PARAM"));
System.out.println("JSP:"+config.getInitParameter("JSP_SERVLET_CONFIG_PARAM"));
context.log("End: jspInit() ");
}
%>
and the DD:
<servlet>
<servlet-name>HobbyFriends</servlet-name>
<jsp-file>/web/hobbyFriends.jsp</jsp-file>
<init-param>
<param-name>JSP_SERVLET_CONFIG_PARAM</param-name>
<param-value>JSP_SERVLET_CONFIG_VALUE</param-value>
</init-param>
</servlet>
Still the output is JSP:null . Everythign is fine, there are no exceptions anywhere @ anytime jst the output is null.