cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [DAISY] Updated: The Spring Configurator
Date Wed, 03 Jan 2007 20:13:27 GMT
A document has been updated:

Document ID: 1303
Branch: main
Language: default
Name: The Spring Configurator (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 1/3/07 8:13:21 PM
Updated by: Carsten Ziegeler

A new version has been created, state: publish


This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 3818 bytes (previous version: 1788 bytes)
Content diff:
(24 equal lines skipped)
    <li>How can I distribute not only code but also corresponding configurations?
    <li>How can I distribute partial web applications?</li>
+++ <li>How do I manage hierarchial web application contexts?</li>
    <p>Of course Spring is flexible enough to enable solutions to the above
(6 equal lines skipped)
    issues with Spring. Ok, enough motivation, let's see what the Spring
    configurator can provide for your work.</p>
+++ <h2>Requirements</h2>
+++ <p>The Spring Configurator requires</p>
+++ <ul>
+++ <li>the Spring Framework Version 2.0.1 (or above)</li>
+++ <li>JDK 1.4 (or above)</li>
+++ <li>Servlet API 2.3 (or above)</li>
+++ </ul>
+++ <p>The Spring Configuration requires two additional jar files, the Cocoon
+++ Configuration API and the Cocoon Spring Configurator, which you can either
+++ download here or from a public Maven repository by adding the Spring
+++ Configurator as a dependency to your project:</p>
+++ <p><strong>TODO - Show dependency configuration</strong></p>
+++ <p>The Spring Configurator uses the Spring the
+++ <a href="">extensible
+++ XML authoring features</a> and therefore it can be directly used in your Spring
+++ bean configurations. Usually you add the configurator to your global web
+++ application context configuration (which is usually located at
+++ <em>/WEB-INF/applicationContext.xml</em>). The extensible XML authoring requires
+++ that you use the schema based configuration for Spring. Just add the required
+++ namespace definition, a reference to the configurator XML schema to your bean
+++ configuration:</p>
+++ <pre>&lt;beans xmlns=""
+++        xmlns:xsi=""
+++        <strong>xmlns:configurator=""</strong>
+++        xsi:schemaLocation="
+++                            <strong>"</strong>&gt;
+++     ...
+++ &lt;/beans&gt;
+++ </pre>
+++ <p>Then you can initialize the configurator by adding the <tt>settings</tt>
+++ element to your bean configuration:</p>
+++ <pre>   &lt;!-- Activate Cocoon Spring Configurator --&gt;
+++    &lt;configurator:settings/&gt;
+++ </pre>
+++ <p>And then...</p>

View raw message