[ 
https://issues.apache.org/jira/browse/COCOON-2034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12485261
 ] 

Daniel Fagerstrom commented on COCOON-2034:
-------------------------------------------

I have a "clever" idea about how to solve it ;) We discussed the problem in 
http://marc.info/?l=xml-cocoon-dev&m=117009688607351&w=2. And I implemented the 
solution as you can see in 
/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/DynamicProxyRequestHandler.java#invoke.
 You just use the context path module instead of the hard coded path and the it 
should work. This is because:

contextPath = wrapped.getContextPath() + wrapped.getServletPath()

which is the prefix of the servlet dispatcher.

> Configure servlet prefix for link rewriting automatically
> ---------------------------------------------------------
>
>                 Key: COCOON-2034
>                 URL: https://issues.apache.org/jira/browse/COCOON-2034
>             Project: Cocoon
>          Issue Type: Task
>          Components: - Servlet service framework
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Grzegorz Kossakowski
>
> Currently prefix at which Cocoon's servlet dispatcher is mounted is hardcoded 
> in 
> /cocoon-servlet-service-components/src/main/resources/META-INF/cocoon/avalon/cocoon-servlet-complete-path-resolver.xconf
>  file. We should find some way setting it automatically.
> Do you know any way how to get value from <url-pattern> in web.xml? Or maybe 
> any other clever idea how to resolve this?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to