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)" <[EMAIL PROTECTED]> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 



--
Sergio Carvalho
---------------
[EMAIL PROTECTED]

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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to