Re: Cocoon 3.0 components

Francesco Chicchiriccò <[email protected]>
Newsgroups gmane.text.xml.cocoon.user
Message-ID <[email protected]>
On 19/06/2013 22:06, gelo1234 wrote:
> I wonder if C2.2 flowscript request object can be followed here in C3:
> http://cocoon.apache.org/2.2/blocks/flowscript/1.0/1383_1_1.html

Flowscript is not available in C3.

> and we can use something like: {jexl:cocoon.request.serverName} or 
> {jext:cocoon.request.header.host} ?
>
> Is any info available about C3 request object ?

Basically, you can use JEXL [1] access to HttpServletRequest methods; 
some examples:

{jexl:cocoon.request.contextPath} -> HttpServletRequest#getContextPath()

{jexl:cocoon.request.myparam} -> HttpServletRequest#getParameter("myparam")

{jexl:cocoon.request.locale.language} -> 
HttpServletRequest#getLocale()#getLanguage()

HTH
Regards.

[1] http://commons.apache.org/proper/commons-jexl/reference/syntax.html

-- 
Francesco Chicchiriccò

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.