Hi to all,
I've recently started experimenting with the web.xml file of my
J2EE app. The problem is that it has an error and I can't locate it. The server (
JBOSS) says that there is some kind of a XMLParse error. Could you please tell me what I'm doing wrong.
>>>>>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>Student Feedback System</display-name>
<description>
Welcome to the Student Feedback system
</description>
<!-- Define and initialise the Login Servlet-->
<
servlet>
<servlet-name>Login</servlet-name>
<servlet-class>com.ernieboy.dmwp_unit.servlets.LoginServlet</servlet-class>
<description>
This servlet is used for user login
</description>
<init-param>
<param-name>driver</param-name>
<param-value>org.gjt.mm.mysql.Driver</param-value>
</init-param>
<init-param>
<param-name>dbURL</param-name>
<param-value>
jdbc:mysql://localhost:3306/ernieboy</param-value>
</init-param>
<init-param>
<param-name>userName</param-name>
<param-value>XXXXX</param-value>
</init-param>
<init-param>
<param-name>password</param-name>
<param-value>XXX</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Define and initialise the event dispatcher Servlet-->
<servlet>
<servlet-name>Dispatcher</servlet-name>
<servlet-class>com.ernieboy.dmwp_unit.servlets.OperationDispatcherServlet</servlet-class>
<description>
This servlet is used for intercepting user requests and then forwarding the
user to the appropriate View (
Java Server Page). This servlet is the
Controller in this context.
</description>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Servlet Mapping -->
<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Dispatcher</servlet-name>
<url-pattern>*.dispatch</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
20
</session-timeout>
</session-config>
<!-- The Usual Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
[ May 24, 2003: Message edited by: ernest fakudze ]