The built-in ResourceHandler , which handles static content and directory indexing, also supports index files. The list of index filenames is initialized to index.htm and index.html, but you can configure in additional filenames. The ResourceHandler  searches the directory for any filename in the list, and the most recently added takes precedence.

Here is an example of a ResourceHandler  that accepts index.jsp as an index file.

<Call name="addHandler">
  <Arg>
    <New class="org.mortbay.http.handler.ResourceHandler ">
      <Call name="addIndexFile"><Arg>index.jsp</Arg></Call>
    </New>
  </Arg>
</Call>


To add an index file to an existing handler within a context use something like the following:

<Call name="addContext">
     <Arg>/context/*</Arg>
     <Set name="ResourceBase">./docroot/</Set>
     <Set name="ServingResources">TRUE</Set>
     <Call name="getResourceHandler">
       <Call name="addIndexFile">
         <Arg>index.jsp</Arg>
       </Call>
     </Call>
 </Call>

Return to JettyConfiguration.