On Sep 23, 2009, at 4:39 PM, Robby Pelssers wrote:
True… the same here… but if I had no prior maven knowledge this
might be a bit trickier to spot. I guess it’s time to have that
documentation published again… HINT HINT.
Robby
This may also need updating:
http://cocoon.apache.org/2.2/1362_1_1.html:
Mounting your block at the root level
You can mount your block at the root level in the application URI
space, so that instead of using (for example) the URIhttp://localhost:8888/myBlock1/foo/bar
to request a page, you would request it athttp://localhost:8888/foo/bar
.
To do this, edit myBlock1/src/main/resources/META-INF/cocoon/spring/
blockServlet.xml , and change the element
<property name="mountPath" value="/myBlock1"/>
to
<property name="mountPath" value=""/>
Here's what worked for me:
in myBlock1/src/main/resources/META-INF/cocoon/spring/block-servlet-
service.xml
change:
<servlet:context mount-path="/myBlock1" context-path="blockcontext:/
myBlock1/" >
to:
<servlet:context mount-path="/" context-path="blockcontext:/
myBlock1/" >
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]