A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/796.html
Document ID: 796
Branch: main
Language: default
Name: BD: Tutorial: Creating, extending and running a block (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 2/10/06 3:30:10 PM
Updated by: Reinhard Pötz
A new version has been created, state: publish
Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name: (unchanged)
Size: 6597 bytes (previous version: 6582 bytes)
Content diff:
(26 equal lines skipped)
check your installed version, open a console and enter</p>
<pre>$ mvn -version
--- Maven version: 2.0.1
+++ Maven version: 2.0.2
</pre>
<p>If this command doesn't work, install Maven 2 first. There is a
(16 equal lines skipped)
skeleton that already contains a working block. In order to use it, open an
console window, create an empty directory and enter</p>
--- <pre>mvn archetype:create \
+++ <pre>
+++ mvn archetype:create \
-DarchetypeGroupId=org.apache.cocoon \
--- -DarchetypeArtifactId=block \
--- -DarchetypeVersion=1.0 \
+++ -DarchetypeArtifactId=cocoon-archetype-block \
+++ -DarchetypeVersion=1.0-SNAPSHOT \
-DgroupId=com.mycompany \
-DartifactId=myBlock</pre>
(10 equal lines skipped)
| +-myblock
| +-<em>MyblockAction.java</em>
+-resources
--- +-META-INF
--- | +-<em>block.xml
--- </em>+-cocoon-app
--- +-<em>sitemap.xmap</em>
--- +-<em>hello.xml</em>
+++ +-COB-INF
+++ | +-<em>sitemap.xmap</em>
+++ | +-<em>test.xml</em>
+++ +-META-INF
+++ +-<em>block.xml
+++ </em>
</pre>
<p>As you can see, the directory structure uses the recommended structure
by the
(14 equal lines skipped)
<p>Open your favorite browser and enter</p>
--- <pre>http://localhost:8080/myBlock/</pre>
+++ <pre>http://localhost:8888/test</pre>
<h1>Use other blocks from within your block</h1>
(102 equal lines skipped)
Fields
======
no changes
Links
=====
no changes
Custom Fields
=============
no changes
Collections
===========
no changes