Author: michiel Date: 2009-12-09 11:11:08 +0100 (Wed, 09 Dec 2009) New Revision: 40176
Modified: mmbase/trunk/documentation/src/docbook/administrators/configuration/index.xml Log: some other examples in web.xml example Modified: mmbase/trunk/documentation/src/docbook/administrators/configuration/index.xml =================================================================== --- mmbase/trunk/documentation/src/docbook/administrators/configuration/index.xml 2009-12-09 09:22:00 UTC (rev 40175) +++ mmbase/trunk/documentation/src/docbook/administrators/configuration/index.xml 2009-12-09 10:11:08 UTC (rev 40176) @@ -348,102 +348,105 @@ of XML comments in it. <example id="examplewebxml"> <title>An example web.xml</title> - <programlisting id="web.xml"> -<?xml version="1.0"?> -<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> -<web-app> + <programlisting id="web.xml"><![CDATA[ +<?xml version="1.0"?> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> +<web-app> - <!-- comment out if necessary (only in older app-servers) - <context-param> - <param-name>mmbase.htmlrooturlpath</param-name> - <param-value>/mm/</param-value> - </context-param> - --> - <!-- + <!-- comment out if necessary (only in older app-servers) + <context-param> + <param-name>mmbase.htmlrooturlpath</param-name> + <param-value>/mm/</param-value> + </context-param> + --> + <!-- If you want to serve images from a different server, then you can specify the complete URL to the images-servlet in this property. The same goes for other 'servlet associations' like 'attachments' and 'downloads'. - --> - <!-- - <context-param> - <param-name>mmbase.servlet.images.url</param-name> - <param-value>http://www.myclub.com/mmbase18images/mmbase/images/</param-value> - </context-param> - --> + --> + <!-- + <context-param> + <param-name>mmbase.servlet.images.url</param-name> + <param-value>http://www.myclub.com/mmbase18images/mmbase/images/</param-value> + </context-param> + --> - <servlet> - <servlet-name>version</servlet-name> - <servlet-class>org.mmbase.servlet.MMBaseServlet</servlet-class> - <load-on-startup>1</load-on-startup> - </servlet> + <servlet> + <servlet-name>version</servlet-name> + <servlet-class>org.mmbase.servlet.MMBaseServlet</servlet-class> + <load-on-startup>1</load-on-startup> + </servlet> - <servlet> - <servlet-name>images</servlet-name> - <display-name>images</display-name> - <servlet-class>org.mmbase.servlet.ImageServlet</servlet-class> - <init-param> - <param-name>expire</param-name><!-- Expire time of original images. Cached images never expire --> - <param-value>600</param-value><!-- 10 minutes --> - </init-param> - <init-param> - <param-name>convert</param-name><!- Whether to accept convertion templates --> - <param-value>false</param-value><!-- no --> - </init-param> - <load-on-startup>2</load-on-startup> - </servlet> + <servlet> + <servlet-name>images</servlet-name> + <display-name>images</display-name> + <servlet-class>org.mmbase.servlet.ImageServlet</servlet-class> + <init-param> + <param-name>expire</param-name><!-- Expire time of original images. Cached images never expire --> + <param-value>600</param-value><!-- 10 minutes --> + </init-param> + <init-param> + <param-name>convert</param-name><!- Whether to accept convertion templates --> + <param-value>false</param-value><!-- no --> + </init-param> + <load-on-startup>2</load-on-startup> + </servlet> - <servlet> - <servlet-name>attachments</servlet-name> - <display-name>attachments</display-name> - <servlet-class>org.mmbase.servlet.AttachmentServlet</servlet-class> - <init-param> - <param-name>expire</param-name><!-- Expire time of attachment --> - <param-value>600</param-value><!-- 10 minutes --> - </init-param> - <load-on-startup>3</load-on-startup> - </servlet> + <servlet> + <servlet-name>attachments</servlet-name> + <display-name>attachments</display-name> + <servlet-class>org.mmbase.servlet.AttachmentServlet</servlet-class> + <init-param> + <param-name>expire</param-name><!-- Expire time of attachment --> + <param-value>600</param-value><!-- 10 minutes --> + </init-param> + <load-on-startup>3</load-on-startup> + </servlet> - <servlet-mapping> - <servlet-name>version</servlet-name> - <url-pattern>/version</url-pattern> - </servlet-mapping> + <servlet-mapping> + <servlet-name>version</servlet-name> + <url-pattern>/version</url-pattern> + </servlet-mapping> - <servlet-mapping> - <servlet-name>images</servlet-name> - <url-pattern>/images/*</url-pattern> - </servlet-mapping> + <servlet-mapping> + <servlet-name>images</servlet-name> + <url-pattern>/images/*</url-pattern> + </servlet-mapping> - <servlet-mapping> - <servlet-name>attachments</servlet-name> - <url-pattern>/attachments/*</url-pattern> - </servlet-mapping> + <servlet-mapping> + <servlet-name>attachments</servlet-name> + <url-pattern>/attachments/*</url-pattern> + </servlet-mapping> - <!-- The MMBase taglib - In Tomcat 5, this section can be left away (it will detect the jar by itself) - --> - <taglib> - <taglib-uri>http://www.mmbase.org/mmbase-taglib-1.0</taglib-uri> - <taglib-location>/WEB-INF/lib/mmbase-taglib.jar</taglib-location> - <!-- specifying a jar should work according to specs, but does not (yet) in all app-servers - if loading the taglib fails, use a separate taglib description file --> - <!-- <taglib-location>/WEB-INF/mmbase-taglib.tld</taglib-location> --> - </taglib> + <!-- + Application context properties can be set in the web.xml too. + Hence, it is possible to override builder properties. + E.g. here we override a property of tye 'cronjobs' builder. + --> + <env-entry> + <env-entry-name>mmbase-builders/cronjobs/RelatedMMServersRequired</env-entry-name> + <env-entry-value>true</env-entry-value> + <env-entry-type>java.lang.Boolean</env-entry-type> + </env-entry> - <!-- MMBase community taglib - In Tomcat 5, this section can be left away (it will detect the jar by itself) - --> - <taglib> - <taglib-uri>http://www.mmbase.org/mmcommunity-taglib-1.0</taglib-uri> - <taglib-location>/WEB-INF/lib/mmbase-community.jar</taglib-location> - <!-- or use a separate taglib description file --> - <!-- <taglib-location>/WEB-INF/mmcommunity-taglib.tld</taglib-location> --> - </taglib> -</web-app> + <resource-ref> + <description> + Datasource for the MMBase Database. This datasource must be + configured in the application server. + This entry is not needed in tomcat, but jetty needs it. + </description> + <res-ref-name>jdbc/MMBase</res-ref-name> + <res-type>javax.sql.DataSource</res-type> + <res-auth>Container</res-auth> + </resource-ref> +</web-app> +]]> + </programlisting> </example></para> </section> _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs