You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Pier Fumagalli <pi...@betaversion.org> on 2004/09/29 00:21:02 UTC

Interesting on Servlet

http://www.mortbay.com/MB/log/gregw/?permalink=servletNG.html

	Pier

Re: Interesting on Servlet

Posted by Vadim Gritsenko <va...@reverycodes.com>.
peter royal wrote:

> On Sep 28, 2004, at 7:27 PM, Stefano Mazzocchi wrote:
> 
>> Pier Fumagalli wrote:
>>
>>> http://www.mortbay.com/MB/log/gregw/?permalink=servletNG.html
>>>     Pier
>>
>>
>> wow, what do you think it would take to create a CocoonServletNG?
> 
> 
> not too much, since we're already event based. maybe treat each pipeline 
> component as a stage?

But you'll have to bury half of methods in Request/Response interfaces 
(request/response headers, possibly request parameters too?), and work with 
content Object (java.io.File for file upload, org.w3c.Document for XML upload, 
but what for regular request? And what is Object for response - if not byte[]) 
instead of I/O streams.

So it's significant, and backward incompatible change. But it is still possible.

Vadim


Re: Interesting on Servlet

Posted by peter royal <pr...@apache.org>.
On Sep 28, 2004, at 7:27 PM, Stefano Mazzocchi wrote:
> Pier Fumagalli wrote:
>
>> http://www.mortbay.com/MB/log/gregw/?permalink=servletNG.html
>>     Pier
>
> wow, what do you think it would take to create a CocoonServletNG?

not too much, since we're already event based. maybe treat each 
pipeline component as a stage?
-pete


Re: Interesting on Servlet

Posted by Sylvain Wallez <sy...@apache.org>.
Stefano Mazzocchi wrote:

> Pier Fumagalli wrote:
>
>> http://www.mortbay.com/MB/log/gregw/?permalink=servletNG.html
>>
>>     Pier
>
>
> wow, what do you think it would take to create a CocoonServletNG?


Cocoon could return a Source object which, AFAIU is not that far from 
Greg's idea of using the ContentHandler API. A FileSource (e.g. returned 
by a Reader) could then be memory-mapped by the container, and we may 
even think of a container-managed cache where Cocoon just computes the 
validity.

Just some random thoughts...

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }


Re: Interesting on Servlet

Posted by Stefano Mazzocchi <st...@apache.org>.
Pier Fumagalli wrote:

> http://www.mortbay.com/MB/log/gregw/?permalink=servletNG.html
> 
>     Pier

wow, what do you think it would take to create a CocoonServletNG?

-- 
Stefano.