Welcome files

Welcome files are used to satisfy HTTP requests that end in a directory name, rather than specifying the full path to a file or a path that is mapped to a servlet invocation. For each request that maps to a directory, the server searches the directory for files that occur in the Web application’s list of welcome files, in the listed order. For example, if the welcome-file list is “index.html, index.htm, welcome.jsp”, the server looks for index.html, then index.htm, then welcome.jsp. If the server finds a static file on the welcome-file list, the server returns its content. If a JSP on the welcome-file list exists, the server invokes the JSP. If no match exists in the directory, the server returns an HTTP 404 (file not found) error, because EAServer does not support directory listings.

StepsAdding a welcome file

  1. Display the File Refs tab in the Web Application Properties dialog box.

  2. Click Add. A new row appears in the list of welcome files.

  3. Place the cursor in the new row, and enter the name of the welcome file. Welcome files are plain files, without path information. You can prepend a directory separator (/), which will be ignored. For example, /index.html is the same as index.html.

StepsDeleting a welcome file

  1. Display the File Refs tab in the Web Application Properties dialog box. The welcome-file list displays.

  2. Place the cursor in the row to be deleted, then click Delete.