cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject JXTemplate Generator Variables
Date Mon, 16 Feb 2004 20:53:31 GMT
Hi all,

Documentation [1] states that JXTemplate generator has cocoon.request / 
cocoon.session / etc variables declared to access request/session/etc. 
And, that it has request / session / etc variables that also provide 
access to the similar objects.

Now, the issue is that JXTemplate generator, actually, does not /always/ 
provide template with cocoon.xxx variables. In reality, it provides 
these variables if, and only if, template has been invoked from within 
the flow. This makes me conclude that, either:
    (a) request/response/etc variables can not be deprecated, as they 
are the only reliable way to get hold of request/response/etc. Cocoon 
needs templating capabilities regardless of flow.
or
    (b) cocoon.request/cocoon.response etc implementation is not 
complete yet, and this is a bug in current implementation.

So, what statement is correct - (a) or (b)?


Vadim

[1] http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html


Mime
View raw message