FileServlet

From Resin 3.0

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