Try :

<web-app>
        <servlet>
                <servlet-name>HOME</servlet-name>
                <servlet-class>org.mytestingservlet.Home</servlet-class>
        </servlet>

        <servlet-mapping>
                <servlet-name>
                        HOME
                </servlet-name>
                <url-pattern>
                        /home/*
                </url-pattern>
        </servlet-mapping>
</web-app>

Pierre-Yves



-----Message d'origine-----
De : A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]De la part de t t
Envoy� : mardi 17 juillet 2001 10:14
� : [EMAIL PROTECTED]
Objet : Deployment of Servlets


Hi Folks

I am trying to deploy my servlets but am having a
problem.  Instead of a welcome file, I want to have
a welcome servlet.  In  my web.xml file I have tried
something like

<welcome-file-list>
  <welcome-file>home</welcome-file>
</welcome-file-list>

<servlet>
  <servlet-name>HOME</servlet-name>
<servlet-class>org.mytestingservlet.Home</servlet-class>
</servlet>

<servlet-mapping>
  <servlet-name>HOME</servlet-name>
  <url-pattern>home</url-pattern>
</servlet-mapping>

But is dosent seem to welcome me with this servlet.
How can I make it so when the user types in the url

http://localhost:8080/home

that they are "welcomed" by the contents of the HOME
servler.

Cheers

Tony



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to