cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timm, Sean" <>
Subject RE: Cocoon2 running with Tomcat + directory rendering issue (poss ible bug?)
Date Mon, 22 May 2000 00:45:55 GMT
I submitted an updated installing.xml for Tomcat 3.1 and Cocoon2 over a
month ago, but it has yet to be committed...

-----Original Message-----
From: Neeme Praks
To: Cocoon-dev (E-mail)
Sent: 5/21/00 12:30 PM
Subject: Cocoon2 running with Tomcat + directory rendering issue (possible

I successfully managed to get Cocoon2 running with Tomcat 3.1 beta (on
I would also document this, and I have a question regarding the
documentation. Are these XML files written by hand? Or is there some
existing editor for this? I suspect that they are written by hand?

Also, after playing around with Cocoon2 and trying out the samples, I
found that the directory rendering doesn't work on the root directory
("/servlet/Cocoon/")... When processing the URI, the CocoonServlet
always removes the first slash from the URI. However, in the case of
root directory, this results in empty URI. I fixed it by adding a check
for the length of the URI:

RCS file:
retrieving revision
diff -r1.1.4.8
<             if (uri.charAt(0)=='/') uri=uri.substring(1);
>             if (uri.charAt(0)=='/' && uri.length() > 1)

Is this ok?

View raw message