cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek (JIRA)" <>
Subject [jira] Commented: (COCOON-1934) [Patch] Allow file system URLs for blockContextURL in BlockServlets
Date Tue, 17 Oct 2006 09:02:36 GMT
    [ ] 
Alexander Klimetschek commented on COCOON-1934:

(Just for documentation) To have reloading, create a Cocoon webapp with a web.xml configured
to have a DispatcherServlet calling your BlockServlets. That maven module should have dependencies
to the blocks you want to develop with reloading. Then put a .properties file in that webapp
module under src/main/webapp/WEB-INF/cocoon/spring that overwrites the blockContextURL for
your BlockServlets (using <bean id of the block>/blockContextURL=<path> format):

> [Patch] Allow file system URLs for blockContextURL in BlockServlets
> -------------------------------------------------------------------
>                 Key: COCOON-1934
>                 URL:
>             Project: Cocoon
>          Issue Type: Improvement
>          Components: - Blocks Framework
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Alexander Klimetschek
>         Attachments: cocoon-blocks-fw-filesystem-for-blockContextURL.patch
> When configuring a BlockServlet, you have to specify a blockContextURL which is used
to find the resources for a block (eg. the sitemap when using a SitemapServlet inside). Currently
it does not accept file:/ URLs, which are useful if you want the development resource reloading
feature and have that URL directly point to the src/main/resources/COB-INF folder.
> This patch allows file:// URLs by explicitly checking for them and directly creating
the corresponding URL object. In all other cases, the normal URL handling of the servlet context
is used.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message