In the Servlet 2.4 spec you will be able to specify servlets as welcome
files. See http://jcp.org/aboutJava/communityprocess/first/jsr154/

Moses



                                                                                       
                                                             
                      Ted Husted                                                       
                                                             
                      <[EMAIL PROTECTED]        To:       Struts Developers List 
<[EMAIL PROTECTED]>                                     
                      g>                       cc:                                     
                                                             
                                               Subject:  Re: how to set welcome-file 
as a Servlet                                                   
                      09/10/2002 04:47                                                 
                                                             
                      AM                                                               
                                                             
                      Please respond to                                                
                                                             
                      "Struts                                                          
                                                             
                      Developers List"                                                 
                                                             
                                                                                       
                                                             
                                                                                       
                                                             




The container expects there to be a physical file that corresponds to a
welcome-file. Since there can be more than one candidate (it's a list of
welcome-files), it needs to look to see what's there and then choose the
one highest on the list.

The usual technique is to create a welcome-file as a JavaServer Page,
and then forward from that to the servlet.

-Ted.

ั๎ะกอ๘ wrote:

> i want to set a servlet as welcome-file in web.xml , but it doesn't work
,how to do it?
>
> thank u .
>
> sureone
>
>
>
>
> --
> To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
>
>


--
Ted Husted, Husted dot Com, Fairport NY US
co-author, Java Web Development with Struts
Order it today:
<http://husted.com/struts/book.html>


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






Reply via email to