[EMAIL PROTECTED] wrote:
> 
> My understanding is that whenever you write a new servlet script,
> you have to add that entry to the web.xml file. Is this correct?

No! If your servlet is called Test.class, you can run it with
http://localhost:8080/servlet/Test (respect the case!)

> Example lets say I write a new servlet called TEST, an entry
> would go in web.xml as:
> 
>     <servlet>
>         <servlet-name>
>             TEST
>         </servlet-name>
>         <servlet-class>
>             TEST
>         </servlet-class>
>     </servlet>

This is usefull when your class (servlet) is in a package. If you make a
package com.aol.dumbservlet.Test, then you can map the servlet to Test
but you got to look at the <ervlet-mapping> directive in web.xml

-- 
Arnaud Vandyck <http://www.ressource-toi.org/>

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

Reply via email to