Hello.
Please help me.
My JSP pages can't get initial parameters from web.xml file.
I wrote jspInit() method to get initial parameter from web.xml file.
The JSP page contains this:
<%!
public void jspInit() {
ServletContext c = getServletContext();
String data = (String)c.getInitParameter("name");
}
%>
and web.xml file contains this:
<servlet>
<servlet-name>
test
</servlet-name>
<jsp-file>
/test.jsp
</jsp-file>
<init-param>
<param-name>name</param-name>
<param-value>value</param-value>
</init-param>
</servlet>
But, the JSP page can't get the initial parameter data.
I use jakarta tomcat 3.1 in windows system.
Did I do correctly to get initial parameter ?
Please help me.
Thank you in advance.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html