www.webdeveloper.com
Results 1 to 4 of 4

Thread: Java Servlet Deployment

  1. #1
    Join Date
    Feb 2004
    Location
    birmingham
    Posts
    21

    Java Servlet Deployment

    Hey im just in the process of deploying an example java servlet and can't figure out the relevance of the <welcome-file-list> tag from the following code:

    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4">

    <servlet>
    <servlet-name>Forwards</servlet-name>
    <servlet-class>com.jspbook.Forwards</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Forwards</servlet-name>
    <url-pattern>/Forwards</url-pattern>
    </servlet-mapping>

    <welcome-file-list>
    <welcome-file>welcome.html</welcome-file>
    </welcome-file-list>
    </web-app>

    Any ideas guys?

  2. #2
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    A Welcome File List is an ordered list of documents which will be looked for when a user requests a directory without specifying a filename. This list often contains files like index.html.

    Regards,
    Andrew Buntine.

  3. #3
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Welcome files are to a Java web container as index files are to a web server. They are a list of potential file names that will be matched as defaults when a url resolves to a directory name. They often include index.jsp, index.html, default.htm, etc.

  4. #4
    Join Date
    Feb 2004
    Location
    birmingham
    Posts
    21
    Ah, thats a great help! Thanks a lot for clearing that up for me

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles