This is version 10. It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

<welcome-file>

This tag specifies the page name of a single welcome file.

A welcome file is provided when a website or web application is accessed using only the domain name (http://www.website.com/).

Welcome files must exist as physical files in your application, or in Servlets 2.4 and above can also be servlets that are defined in web.xml.

The leading slash should not be specified.

Example 1: a shockwave file in your application root folder

    <welcome-file>splash.swf</welcome-file>

Example 2: a file in /info/help.htm (not sure why you would want to do this, but it is possible!)

    <welcome-file>info/help.htm</welcome-file>

Example 3: if you are using a servlet, and the <url-pattern> for the servlet is /servlet/MyServlet, you would specify servlet/MyServlet, without the leading slash.

    <welcome-file>servlet/MyServlet</welcome-file>

See Also

navigation
metawerx specific
search
Share
tools
help

referring pages

Share