Web-app-default

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
 
(renamed tag to directive)
 
Line 1: Line 1:
The <web-app-default> tag is a default configuration for all [web-apps|web-app] in a [host].  It can contain all the children of a <[web-app]> tag.  It can be particularly useful with the <[web-app-deploy]> tag in combination with  <[resin:import|resin import]>.
+
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]>.
  
 
[[Category:Configuration]]
 
[[Category:Configuration]]
  
The <web-app-default> tag can appear in the <[[server]]>, the <[[host]]>, and the <[[web-app-deploy]]> tags.
+
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]].
 
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]].

Latest revision as of 20:24, 21 February 2006

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.

app-default.xml

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

    <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"/>
  </web-app-default>
</server>
Personal tools