Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 86765 invoked from network); 19 Mar 2004 19:06:43 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Mar 2004 19:06:43 -0000 Received: (qmail 79667 invoked by uid 500); 19 Mar 2004 19:06:29 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 79615 invoked by uid 500); 19 Mar 2004 19:06:29 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 79601 invoked from network); 19 Mar 2004 19:06:29 -0000 Received: from unknown (HELO keow.org) (69.41.247.100) by daedalus.apache.org with SMTP; 19 Mar 2004 19:06:29 -0000 Received: (qmail 10074 invoked by uid 1000); 19 Mar 2004 19:12:42 -0000 Date: Fri, 19 Mar 2004 19:12:42 +0000 From: Tim Larson To: dev@cocoon.apache.org Subject: Re: cocoon:// with readers Message-ID: <20040319191242.GK970@keow.org> References: <20040319184254.GJ970@keow.org> <728D7EA2-79D6-11D8-9989-000A95908E0E@wrinkledog.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <728D7EA2-79D6-11D8-9989-000A95908E0E@wrinkledog.com> User-Agent: Mutt/1.3.28i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Fri, Mar 19, 2004 at 10:51:35AM -0800, Mark Lundquist wrote: > > On Mar 19, 2004, at 10:42 AM, Tim Larson wrote: > > >Why does the cocoon:// protocol not work with readers? > >Am I doing something wrong, or is this a real limitation? > > > >I have a /> serving up a text > >file (not XML format) and am trying to access it from flow > >to populate a string to set a CForms Field widget with > >textarea styling to allow editing the text file. > > > >Since I will be using web-dav, this will probably not be > >a problem for me, but it seems like a strage limit on the > >cocoon:// protocol (assuming I did not just mess up). > > That sounds like this bug: > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25121 > > ... but it looks like that was fixed in 2.1.4. ? Thanks for the reply, but I think it is different. I can load this in the browser: http://127.0.0.1:8888/training/forms/flow/forms_flow_example.js.txt and hitting the file directly using the "file://" protocol works: var text = loadTextDocument("file://c:/tdl/live/training/forms/flow/forms_flow_example.js"); but I get an error with this: var text = loadTextDocument("cocoon://training/forms/flow/forms_flow_example.js.txt"); Here is the error: cause: java.io.FileNotFoundException: c:\tdl\live\training\forms\flow\sitemap.xmap (The system cannot find the file specified) Maybe I am just missing something simple. --Tim Larson