cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Where did ProducerFromRequest go?
Date Tue, 22 Aug 2000 22:04:32 GMT
Ulrich Mayring wrote:
> 
> Hi folks,
> 
> I'm back and ready to rumble again.
> 
> I read in the list archives that ProducerFromRequest was removed for
> security reasons.

Yes.

> I need to call cocoon programmatically and perused the fromServlet
> sample supplied with cocoon. This sample needs ProducerFromRequest to
> run - so:
> 
> 1) Will ProducerFromRequest come back?

No

> 2) If no, how would one go about calling cocoon programmatically (from a
> remote machine)?

Good question.

The answer is: it depends.
 
> Basically, I create an XML document in a Java program and post it to a
> servlet (to be written), which should hand it to cocoon, cocoon should
> (via fop) generate a PDF and send a stream back to the servlet, which
> gives the stream to the Java program, which saves the PDF to a file.

Well, in this case, I would suggest that your servlet extends Cocoon
instead of calling it.

Use the OOP, luke :)

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message