Actually, as I recall a welcome-file cannot be a servlet path but must be a JSP or static page.
First, you will want to set 'index.jsp' as the welcome file.
Then to achieve what you want you want (that is, the web app is accessed at http://www.mysite.com) you need to configure the application to deploy as the root (default) context. This configuration is specific to the container you are deploying to and you will also want to set the container to listen to port 80. Here is the setting for port 80 for Tomcat in the 'server.xml':


<Connector port="80" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />


Then you add a Context element that specifies the path as "" (empty string) to set the root context to be your web app.

For Tomcat you would add an entry into 'server.xml' like the following:

<Context path="" docBase="/path/to/my/webapp/"/>

Bill Siggelkow

Tuncay Baskan (Yazilim Muh. - Proje Gel. ve Uyg. Gr.) wrote:
-----Original Message-----
You can add

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

to your web.xml and the application server processes /home.do for requests like http://www.mysite.com/.


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



Reply via email to