You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ulrich Mayring <ul...@denic.de> on 2000/08/22 19:45:54 UTC
Where did ProducerFromRequest go?
Hi folks,
I'm back and ready to rumble again.
I read in the list archives that ProducerFromRequest was removed for
security reasons.
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?
2) If no, how would one go about calling cocoon programmatically (from a
remote machine)?
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.
cheers everyone,
Ulrich
--
Ulrich Mayring
DENIC eG, Systementwicklung
Re: Where did ProducerFromRequest go?
Posted by Stefano Mazzocchi <st...@apache.org>.
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.
<st...@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------
Re: Where did ProducerFromRequest go?
Posted by Ulrich Mayring <ul...@denic.de>.
Donald Ball wrote:
>
> > 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.
>
> i think your java program should just call Xalan and FOP directly.
Well, we have several tools that programmatically create XML, HTML or
PDF documents, so I was looking for a more generic way to do that.
Probably I should look into SOAP, but quite frankly, it looks very
complicated :)
I think I'll try to copy&paste the code from ProducerFromRequest into my
servlet and see how things go.
Ulrich
--
Ulrich Mayring
DENIC eG, Systementwicklung
Re: Where did ProducerFromRequest go?
Posted by Donald Ball <ba...@webslingerZ.com>.
On Tue, 22 Aug 2000, 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.
>
> 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?
nope. it's not safe. you could maybe rewrite a version that would be safe,
but i'd rather it not be part of the standard cocoon distro. i think you
could engineer a better solution for anything you might want
ProducerFromRequest for.
> 2) If no, how would one go about calling cocoon programmatically (from a
> remote machine)?
>
> 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.
i think your java program should just call Xalan and FOP directly.
- donald