Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 52837 invoked by uid 500); 27 Jul 2001 18:12:52 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 52786 invoked from network); 27 Jul 2001 18:12:49 -0000 Date: Fri, 27 Jul 2001 19:12:44 +0100 From: Sergio Carvalho To: cocoon-users@xml.apache.org Subject: Re: ProducerFromRequest Message-Id: <20010727191244.3386f34e.sergio.carvalho@acm.org> In-Reply-To: <25CCC6566D01D411885B00A024559FB70392066B@EXCHANGE_GERAL> References: <25CCC6566D01D411885B00A024559FB70392066B@EXCHANGE_GERAL> X-Mailer: Sylpheed version 0.5.0claws3 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N The easiest way out is to make an HTTP request to the same host. Since you already have a Servlet container, everything is available to install C2 as a servlet. If, for some reason you don't want to, there are two clear options: 1) Setup a pseudo-command line request. Have a look at the command-line entry point code, on org.apache.cocoon.Main. 2) Write a new environment (ServletEnvironment?). This involves implementing the interfaces on the org.apache.cocoon.environment package. Option 2 is the elegant one. Any one of these two involves writing way more code than just requesting a document via HTTP. Unless you have a compeling reason, I'd go for an HTTP request. On Thu, 26 Jul 2001 16:25:11 +0100, "Joao R Silva (EST)" wrote: -- > The function ProducerFromRequest was removed from the Cocoon version 1.7.4 > for security reasons. > I would like to know if the is any solution to overcome the problem. > I want to call cocoon from a servlet. In the example "fromServlet" that > existed in the Cocoon version 1.7.4 is used the removed function. Running > this example in recent versions is impossible. > So, what can i do? > Please help! > > Regards > Jo�o Silva > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: > -- Sergio Carvalho --------------- sergio.carvalho@acm.org If at first you don't succeed, skydiving is not for you --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: