Latha,

For TC4 you need the web.xml to be this:

 <?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>

<servlet>
    <servlet-name>testServlet</servlet-name>
    <display-name>Testing</display-name>
    <servlet-class>yourPackageName.testServlet</servlet-class>
</servlet>

  <servlet-mapping>
         <servlet-name>testServlet</servlet-name>
         <url-pattern>/testServlet</url-pattern>
     </servlet-mapping>

 </web-app>


In TC4 you have to have both (if I understand correctly) and when you map
you don't need the /servlet in the pattern.

Give it a try.
Note all servlet tags must be grouped together and occur before the mapping
tags.

Doug
www.parsonstechnical.com



>
> My xml file is as follows:
>
> <?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>
>
>  <servlet-mapping>
>         <servlet-name>testServlet</servlet-name>
>         <url-pattern>/servlet/testServlet</url-pattern>
>     </servlet-mapping>
>
> </web-app>
>



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

Reply via email to