cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <gkossakow...@apache.org>
Subject Re: How Mounting your block at the root level ??
Date Mon, 21 Jan 2008 20:17:11 GMT
S├ębastien Geindre pisze:
> In documentation i can read :
> 
> 
>      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 URI
> http://localhost:8888/myBlock/foo/bar to request a page, you would
> request it at http://localhost:8888/foo/bar.
> 
> To do this, edit
> myBlock/src/main/resources/META-INF/cocoon/spring/block.xml , and change
> the element
> 
>    <property name="mountPath" value="/myBlock1"/>
> 
> to
> 
>    <property name="mountPath" value=""/>
> 
> is it still working ?

Have you tried:

    <property name="mountPath" value="/"/>

Report if it's working so we can fix code or documentation (most probably the latter)

<snip/>

> The question is is it possible to change the URL :
> http://myMachine:port/myWebApplication/myBlock/resource
> 
> to http://myMachine:port/resource ???

Yep, definitively it's possible.

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message