cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: Your first Cocoon application using Maven 2
Date Thu, 11 Jan 2007 17:49:45 GMT
A document has been updated:

http://cocoon.zones.apache.org/daisy/documentation/1159.html

Document ID: 1159
Branch: main
Language: default
Name: Your first Cocoon application using Maven 2 (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 1/11/07 5:49:31 PM
Updated by: Mark Lundquist

A new version has been created, state: draft

Parts
=====

Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 9427 bytes (previous version: 8847 bytes)
Content diff:
(197 equal lines skipped)
    
    &lt;/project&gt;</pre>
    
+++ <h1>Mounting your block at the root level</h1>
+++ 
+++ <p>You can mount your block at the root level in the application URI space, so
+++ that instead of using (for example) the URI
+++ "http://localhost:8888/myBlock/foo/bar" to request a page, you would request it
+++ at "http://localhost:8888/foo/bar".</p>
+++ 
+++ <p>To do this, edit myBlock/src/main/resources/META-INF/cocoon/spring/block.xml
+++ , and change the element</p>
+++ 
+++ <pre>    &lt;property name="mountPath" value="/myBlock1"/&gt;
+++ </pre>
+++ 
+++ <p>to</p>
+++ 
+++ <pre>    &lt;property name="mountPath" value="/"/&gt;
+++ </pre>
+++ 
+++ <p>and then do "mvn:install".</p>
+++ 
    <h1>Conclusion and further information</h1>
    
    <p>So far you have created a Cocoon application that consists of a web
(40 equal lines skipped)


Mime
View raw message