cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Carvalho <sergio.carva...@acm.org>
Subject Re: ProducerFromRequest
Date Fri, 27 Jul 2001 18:12:44 GMT

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)" <jrsilva@ptinovacao.pt> 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. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 



--
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. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message