cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: News from the Websphere 5.0 front
Date Mon, 03 Feb 2003 14:29:21 GMT
On 03.Feb.2003 -- 02:18 PM, Pier Fumagalli wrote:
> "Christian Haul" <haul@dvs1.informatik.tu-darmstadt.de> wrote:
> 
> > On 03.Feb.2003 -- 01:55 PM, Pier Fumagalli wrote:
> >> "Gernot Koller" <grizzly@gmx.at> wrote:
> >>>  <map:match pattern="documents/index">
> >>>     <map:redirect-to uri="{request:contextPath}/documents/index.html"/>
> >>> 
> >>> seems to fix most of these problems.
> >>> Still it's probably not the most elegant solution, is it ?
> >> 
> >> Nope... But Jetty had the same problem... It's not a problem within Cocoon,
> >> it's a problem within WebSphere. In Jetty we patched it (in CVS right now).
> > 
> > Speaking of jetty: In jetty request.getServletPath() returns an empty
> > string. Is that a bug or a feature?
> 
> It is (IMO) the correct interpretation of the specification. If a servlet is
> mapped to all, as Cocoon does, then also ("/") is part of the path info, and
> therefore getServletPath (in my opinion) should be empty...
> 
> What does Tomcat do? Does it return "/" or ""????

Depends on where you evaluate it. See the 2.1 samples. I use
getServletPath() to find the paths involved after the context path to
locate the source files. It works well in tomcat but does not in
jetty.

Thus jetty  http://localhost:8888/samples/foo/bar gives ""
and  tomcat http://localhost:8080/cocoon/samples/foo/bar gives "samples/foo"

	Chris.
-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message