cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabe Beged-Dov <>
Subject XSP and getRealPath
Date Thu, 20 Jan 2000 19:38:42 GMT
I'm running the 3.1 tomcat standalone with Cocoon 1.6. I create a
separate WebApp for Cocoon. 

XSP gets a real path in several places by calling getRealPath on
the requestURI. This causes the ContextPath directory to appear
twice in the expanded path. If the ServletPath is used instead of
the RequestURI then the expanded path is fine. For example:

requestURI: /cocoon/samples/xsp/lib-page.xml
serveltPath: /samples/xsp/lib-page.xml

If I add the following to the lib-page.xml example:

    <element name="request-uri expanded">
    <element name="servlet-path expanded">

I get:

request-uri expanded = ...
servlet-path expanded = ...  /cocoon/samples/xsp/lib-page.xml

Cordially from Corvallis,

Gabe Beged-Dov


View raw message