cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Relative Stylesheet URIs not fixed?
Date Sun, 07 May 2000 11:07:31 GMT
"Timm, Sean" wrote:
> 
> <snip>
> > My suggestion:
> >
> > 1) URI fully specified ==> take it like it is
> > 2) URI not fully specified and starts with a "/" ==> determine server
> > name and port, append URI
> 
> Shouldn't this be based on the servlet context (if running as a servlet)?
> This issue needs to be addressed for the Cocoon 2 sitemap, as well.  It
> should be http://ServerName:Port/ServletContext/URI.

Yes, but this requires Servlet 2.2

for now I use

 request.getRealPath("/")

which totally sucks, but it's the best I could do :(

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message