Listed below is a copy of my web.xml file located in the /web-inf directory
of my application.
Here is the problem. When the JSP page listed below is invoked for the first
time I was expecting the Enumeration to list out three params and their
values. Instead, I only see the last params and it's values. Why?
I'm using the latest version of the Tomcat Server running on an NT machine
and the 1.2.2 JDK.
Any help would be appreciated.
<%@ page import="java.util.Enumeration" %>
<HTML>
<HEAD>
<TITLE>DemoCart, the shopping cart example: User Login Page</TITLE>
</HEAD>
<body>
<Div align="center">ServletContext Init Parameters</div>
<HR>
<%
for(Enumeration e =
application.getInitParameterNames();e.hasMoreElements();)
{
String temp = (String)e.nextElement();
out.println(temp + " = ");
out.println(application.getInitParameter(temp));
out.println("<br>");
}
%>
</body>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>A Simple Application</display-name>
<context-param>
<param-name>Webmaster</param-name>
<param-value>[EMAIL PROTECTED]</param-value>
<param-name>JNDIServer</param-name>
<param-value>201.201.201.201</param-value>
<param-name>LooneyName</param-name>
<param-value>BillGates</param-value>
</context-param>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
</web-app>
---------------------------------------------
Glenn Wilson
Director of Software Development
XOL Corp.
http://www.xol.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets