FileServlet

From Resin 3.0

Revision as of 21:58, 11 January 2006 by Ferg (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Resin's file servlet serves plain files. Normally, it's the default servlet if none others match.

parameters

parameter description
character-encoding charset to use as the default
enable-range allow HTTP range encoding

examples

<web-app xmlns="http://caucho.com/ns/resin">
  <servlet servlet-name="resin-file" 
           servlet-class="com.caucho.servlets.FileServlet">
    <init>
      <character-encoding>UTF-8</character-encoding>
    </init>
  </servlet>
</web-app>
Personal tools