You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Grzegorz Kossakowski <gk...@apache.org> on 2007/11/08 17:11:41 UTC

Re: [cocoon-2.2] Servlet source description (was: Deprecation)

Vadim Gritsenko pisze:
> Carsten Ziegeler wrote:
>> Grzegorz Kossakowski wrote:
>> Yepp, but unfortunately too many people rely on these side-effects :(
> 
> Is there place where differences between servlet: and cocoon: sources
> are described? Or, at least, where servlet: source is described?

For the most simple aspect of servlet: protocol when it acts passively fetching resources from other
blocks there is no such description (or at least I couldn't find any, I hope Daniel could help with
this). Anyway, as I said in passive mode behaviour of servlet: source is very simple: it creates a
new request (o.a.c.servletservice.util.BlockCallHttpServletRequest class) object and servlet service
(usually just a SitemapServlet) is asked to process such request. The processing works exactly the
same as this request would come from browser so the whole new environment is being created, etc.

Little bit more tricky is servlet: source when it acts in active mode used as postable source.
Fortunately enough, this aspect has been discussed thoroughly and you can find links to the most
important threads in description of COCOON-2046[1] issue where implementation of postable source was
tracked.

There is a third aspect of servlet: source: Object Oriented behaviour. This is already implemented
and was tracked by COCOON-2038[2]. The most important mail from the discussion mentioned in that
issue is[3].

I hope this helps a little. If not, don't hesitate to ask.

[1] https://issues.apache.org/jira/browse/COCOON-2046
[2] https://issues.apache.org/jira/browse/COCOON-2038
[3] http://article.gmane.org/gmane.text.xml.cocoon.devel/72335

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/