File Refs

In the File Ref's tabbed pane, you can edit the list of , JSP , and error mappings.

List Welcome Files

  1. Click Add to add rows to the table.
  2. Enter the names of the welcome files into the Welcome files table in the order that you want them to be accessed.

To delete a file from the list, select the row containing the file and click Delete. A confirmation dialog will ask you if you really want to delete the file from the list.

List JSP Tag Libraries

In the JSP Tag Libraries section, list the tag libraries and their (TLD) referenced by this WAR file.

  1. Click Add.
  2. Enter the URI describing the tag library in the Coded Reference column. For example, if your tag library directive is <%@ taglib uri="/myPRlibrary" prefix="x" %>, enter /myPRlibrary in the Coded Reference column.
  3. Enter the location of the TLD that specifies the tag library in the Tag Library column. For example, if the TLD for myPRlibrary is called PRlibrary_1_4.tld and is located int the tlds directory, enter /WEB-INF/tlds/PRlibrary_1_4.tld.

To delete a tag library from the list, select the tag library and click Delete. A confirmation dialog will ask you if you really want to delete the tag library from the list.

Map Errors to URLs

In the Error Mapping section of the File Ref's tabbed pane, you can indicate the URL that must be accessed when a particular error occurs. For example, you could enter `404' in the Error/exception column and `404.html' in the URL column to indicate that the 404.html file should be opened when the 404 error occurs.

  1. Click Add to add a mapping to the table.
  2. Enter the name of an error in the Error/exception column.
  3. In the URL column, enter the URL that you would like to be accessed if the error occurs.

To delete a mapping from the list, select the row containing the mapping and click Delete. A confirmation dialog will ask you if you really want to delete the mapping from the list.


Copyright 1999-2001 Sun Microsystems, Inc. All Rights Reserved.