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)
</project></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> <property name="mountPath" value="/myBlock1"/>
+++ </pre>
+++
+++ <p>to</p>
+++
+++ <pre> <property name="mountPath" value="/"/>
+++ </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)