Neeme Praks wrote:
>
> Well I tracked it down... the problem is in
> org.apache.cocoon.Utils.getBaseName() method (included in the end of
> this post)...
>
> The problem is that Cocoon get's the servlet name instead of XSP
> filename.
>
> As Cocoon uses ServletContext.getRealPath(path) for mapping requested
> virtual URL to the filesystem, then possible workarounds are:
> 1. Give JetspeedServletRequest access to virtual URL of XSP file and
> return this in response to request.getServletPath().
> 2. Emulate JServ or command line mode and return the physical path to
> the XSP file from request.getPathTranslated().
> 3. Wrap ServletContext and return the physical path to the XSP file from
> ServletContext.getRealPath().
>
> Well, the cleanest would probably be the first solution, but this
> would't allow us to cache the stylesheets.
> Second one is a hack and I don't like it.
> Third one is a smaller hack, but still.
>
> So I don't have a clear idea how to solve this... Waiting for comments.
<snip>
I didn't dig into all the code... but it seems that this would only be
executed if repository were "." and Cocoon would need to figure out what
that meant.
Kevin
--
Kevin A Burton ([EMAIL PROTECTED])
http://relativity.yi.org
Message to SUN: "Please Open Source Java!"
"For evil to win is for good men to do nothing."
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]