Hi,
I created a xml file (web.xml) which is given below as shown in the book
******************************************************
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
<web-app>
<
servlet>
<servlet-name>
ShowMsg
</servlet-name>
<servlet-class>
coreservlets.ShowMessage
</servlet-class>
<init-param>
<param-name>
message
</param-name>
<param-value>
Chakravarthy
</param-value>
</init-param>
<init-param>
<param-name>
repeats
</param-name>
<param-value>
5
</param-value>
</init-param>
</servlet>
</web-app>
**************************************************
I am trying to use the elements in here in a servlet. This is an example that I trying a book ( Coreservlets and
JSP by Marty Hall). When I put this web.xml in the d:\resin1.2.1\doc\web-inf directory and start the resin server, it gives me a error saying...
CANNOT MIX TEXT AND ELEMENTS AT WEB-APP followed by a bunch of exceptions.
I do not know any XML and I just started learning servlets..
Could somebody help me?
Chuck