From Resin 3.0

Jump to: navigation, search

The <web-app-default> directive is a default configuration for all [web-apps|web-app] in a [host]. It can contain all the children of a <[web-app]> directive. It can be particularly useful with the <[web-app-deploy]> directive in combination with <[resin:import|resin import]>.

The <web-app-default> directive can appear in the <server>, the <host>, and the <web-app-deploy> directives.

The best example of <web-app-default> is in the app-default.xml file in $RESIN_HOME/conf/app-default.xml in the standard distribution. That <web-app-default> configures always-available servlets like the JSP servlet and the File servlet, as well as configuring WEB-INF/classes, WEB-INF/lib, and web.xml and resin-web.xml.


<server xmlns="http://caucho.com/ns/resin">
      <compiling-loader path="WEB-INF/classes"/>
      <library-loader path="WEB-INF/lib"/>

    <servlet servlet-name="jsp" servlet-class="com.caucho.jsp.JspServlet"/>


    <resin:import path="WEB-INF/web.xml" optional="true"/>
    <resin:import path="WEB-INF/resin-web.xml" optional="true"/>
Personal tools