cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Fagerstrom (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COCOON-1938) [Patch] Allow blocks mounted at "/" to handle more than just the "/" URL
Date Tue, 24 Oct 2006 20:00:19 GMT
    [ http://issues.apache.org/jira/browse/COCOON-1938?page=comments#action_12444479 ] 
            
Daniel Fagerstrom commented on COCOON-1938:
-------------------------------------------

IMO "/style.css" and "/index.html" are not mounted on "/" but on "". With this intepretation
the implementation works, although it might be somewhat subtle and should be documented. If
we compare with web.xml the "root" servlet is mounted on "/*" rather than on "/", but that
requires wildcard handling which I found to be overkill.

We could introduce special handling for "/" as you suggest, but in that case the equation:
uri = contextPath + servletPath + mountPath + pathInfo, will not be valid anymore. Opinions?

> [Patch] Allow blocks mounted at "/" to handle more than just the "/" URL
> ------------------------------------------------------------------------
>
>                 Key: COCOON-1938
>                 URL: http://issues.apache.org/jira/browse/COCOON-1938
>             Project: Cocoon
>          Issue Type: Improvement
>          Components: - Blocks Framework
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Alexander Klimetschek
>            Priority: Minor
>         Attachments: cocoon-blocks-fw-improve-root-mounting.patch
>
>
> The current DispatcherServlet allows for blocks mounted at "/" only the simple "/" URL
to be handled because all other cases (eg. "/style.css" or "/index.html") will be interpreted
as blocks - and because these don't exist, the matching will fail.
> For this case, I added a short piece of code that will allow to handle such cases for
the root block.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message