cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Fagerstrom (JIRA)" <>
Subject [jira] Commented: (COCOON-2034) Configure servlet prefix for link rewriting automatically
Date Thu, 29 Mar 2007 17:31:25 GMT


Daniel Fagerstrom commented on COCOON-2034:

I have a "clever" idea about how to solve it ;) We discussed the problem in
And I implemented the solution as you can see in /cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/
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:
>             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.

View raw message