Thank you for sending the source. However, after much struggling, I find I'm still not able to use it in a mounted directory. I'm using Cocoon-2.0 and have done the following:
* placed you source file in webapps/cocoon/WEB-INF/classes/org/apache/cocoon/reading * compiled the code so there is a JSPReader.class file * modified the sitemap.xmap in the mounted directory to include <map:readers default="resource"> <map:reader name="resource" src="org.apache.cocoon.reading.ResourceReader"/> <map:reader name="jsp" src="org.apache.cocoon.reading.JSPReader"/> </map:readers> and <map:pipeline> <map:match pattern="**.jsp"> <map:read type="jsp" src="{1}.jsp" mime-type="text/html"/> </map:match> </map> When I attempt to go to a JSP page, I get a 404 error. Any idea what I might be doing wrong? I'm tailing all the log files and it just gives 127.0.0.1 - - [15/Dec/2001:10:53:03 -0800] "GET /cocoon/intranet/apptracker.jsp HTTP/1.1" 404 645 Which is not very helpful. Any help would be appreciated! Thanks! -- Matt Ho Principal Indigo Egg, Inc. Providing VoiceXML Professional Services > -----Original Message----- > From: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 10, 2001 12:51 AM > To: [EMAIL PROTECTED] > Subject: Re: Reading a JSP file > > > Hi! > > JSPReader were added only to the C2.1-dev branch, cause it > seemed to me that nobobdy is interested in it and I didn't > post a patch for C2.0. The attached is the src of JSPReader > that I used with Cocoon 2.0 (a few weeks old version), hope > it will work with the release too. > > P.S. If anybody else is interested in JSPReader I'll improve > it and send a patch to C2.0 with samples and docs. > > Regards, > Konstantin Piroumian > > ----- Original Message ----- > From: "Matt Ho" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: "Rachel McConnell" <[EMAIL PROTECTED]> > Sent: Monday, December 10, 2001 12:12 AM > Subject: Reading a JSP file > > > > Ugh. I've read through all the documentation I can find, > but I can't > > figure out how to get my submap to serve up JSP pages > natively (i.e. > > they don't output XML). > > > > I have the following configuration: > > > > * Redhat 7.2 > > * Tomcat 4.0.1 > > * Sun JDK 1.3.1 > > > > When I place JSP files in the webapps/cocoon directory, > they work just > > fine. When I create a submap > > > > <map:pipeline> > > <map:match pattern="intranet/**"> > > <map:mount uri-prefix="intranet" src="file:/home/intranet/" > > check-reload="yes"/> > > </map:match> > > </map:pipeline> > > > > The submap works and does every other mapping that it > should, but it > > will not display a plain JSP page. The error that I get > back is 'The > > request resource is not available'. The log files are not > providing > > me a clue either. > > > > I've tried a workaround without success. I downloaded the > top of tree > > version which I noted had JSPReader. I then JSPReader with the > > cocoon2 binary release and tried configuring it by hand via: > > > > <map:reader name="jsp" > src="org.apache.cocoon.reading.JSPReader"/> > > > > No joy. > > > > Any help would be appreciated. > > > > Thanks! > > > > -- > > Matt Ho > > Principal > > Indigo Egg, Inc. > > Providing VoiceXML Professional Services > > > > > > > > > --------------------------------------------------------------------- > > Please check that your question has not already been > answered in the > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> > > > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>