In our design, we were trying to keep a clear delineation
(sp?) from our transforming engine (cocoon) and our
requestor - in the case of the code I provided, this was
to show how a servlet from another web server could call
cocoon and get the transformed results - we also have a
swing client
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>
> > But you have to look at the memory aspect too...
> > A new instance of the generator is created at each request and so
the
> > amount of memory allocated keeps increasing.
Not (exactly) true - depends how you implement it. Read on Avalon
>How can I do that ? Should I implement the Generator interface too
>in my servlet, or do the HTTP request thing what Jupin suggested ?
>Or is there any other way to do that ? I saw plenty of exapmles
>which use JSP, HTML, XSP and other thing as a generator, but nowhere
>a simple Java (servlet) c
> But you have to look at the memory aspect too...
> A new instance of the generator is created at each request and so the
> amount of memory allocated keeps increasing.
:( Too bad.
> With cocoon2 you can also use a servlet as a generator. It's
> certainly not
> the best solution neither but
You are welcome :)
But you have to look at the memory aspect too...
A new instance of the generator is created at each request and so the
amount of memory allocated keeps increasing.
With cocoon2 you can also use a servlet as a generator. It's certainly not
the best solution neither but since yo
Thanx Alex. I guess this was exactly what I needed.
I assume that from the performace point of view this
is not the best solution, but I right now I already have a huge
amount of code in a servlet. In order to make the pages
configurable, I ported the whole thing pretty easily
to Cocoon1. I conver
Hi
Here is a dummy generator that parses a string and gives the sax events to
cocoon. Hope that is what you need.
From my experience I can tell that it is not the best thing to do with
cocoon2...
Regards
Alex
import org.apache.avalon.framework.parameters.Parameters;
import org.apache.co
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>
> Hi guys,
>
> I've had a simple java code which produced XML
> output. In Cocoon1, I had to implement some Producer
> interface, so my java code became integrated in the
> Cocoon servlet. Does anybody know how to do similar
> thing in Coco
Hi guys,
I've had a simple java code which produced XML
output. In Cocoon1, I had to implement some Producer
interface, so my java code became integrated in the
Cocoon servlet. Does anybody know how to do similar
thing in Cocoon2 ? I've read the code snippet written
by Jupin, but I have somethin