I have altered a web.xml file in my \webapps\test\WEB-INF directory.
Upon startup I get a parse error about the structure of the file.
I opened the file in XML spy and it said it was an <servlet> tag unexpected
child element.
I then downloaded the DTD from sun and printed it out. I am adhering to the
DTD from what it seems.
<?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>
                 Hello3
                </servlet-name>
                <servlet-class>
                         Hello3
                </servlet-class>
        </servlet>
        <servlet-mapping>
                <servlet-name>
                        Hello3
                </servlet-name>
                <url-pattern>
                        /test/Hello3
        </url-pattern>
        </servlet-mapping>
        <servlet> ---  IT GIVES THE ERROR AT THIS LINE
                <servlet-name>
                 SurveyServlet
                </servlet-name>
                <servlet-class>
                        SurveyServlet
                </servlet-class>
        </servlet>
        <servlet-mapping>
                <servlet-name>
                        SurveyServlet
                </servlet-name>
                <url-pattern>
                        /MedSurvey
        </url-pattern>
        </servlet-mapping>

Any ideas? Need more info?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to