Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 897A5C66C for ; Thu, 20 Jun 2013 14:00:15 +0000 (UTC) Received: (qmail 48922 invoked by uid 500); 20 Jun 2013 14:00:15 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 48556 invoked by uid 500); 20 Jun 2013 14:00:14 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 48549 invoked by uid 99); 20 Jun 2013 14:00:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jun 2013 14:00:14 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gelo1234@gmail.com designates 209.85.219.45 as permitted sender) Received: from [209.85.219.45] (HELO mail-oa0-f45.google.com) (209.85.219.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Jun 2013 14:00:08 +0000 Received: by mail-oa0-f45.google.com with SMTP id j1so8114198oag.32 for ; Thu, 20 Jun 2013 06:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=umKcVPFKJVbGFSPNSAjy9bpEm2eEXS1FbsAeR6hSEoM=; b=nU3AnQE3G1GjMeq5Gt7jXL+PwkOsg5XQC3Sod1lIbReDLr54HE1e70yw5qaU9M+Vqj gxLStxv6l9Y4/EiGX1U9mSwq1vIZ7nx2xAzfwW7g88CZ5RaBt4AMge7jsBPDs6IiSEbL LIAQDSYS4GwBn+VbhElnq/1JoOu8uxZKR/1E/zcEqL9nKuqzHCyD8Va3B8/0gytwjHvB za4z3BOYF2JcFA+5k7TbGxB8hVF0W+CqvZYwLSbBgsaIBJLnxs/q+83k7106zL9m70gO CzqgbGzvO4hQa5oqoUmEM9fVNrlDR5XNuJl2F24Bw/zqGOasrRoaUcwUjo0oDP8ZWaSZ NM1Q== MIME-Version: 1.0 X-Received: by 10.60.42.9 with SMTP id j9mr4402825oel.121.1371736787411; Thu, 20 Jun 2013 06:59:47 -0700 (PDT) Received: by 10.76.114.163 with HTTP; Thu, 20 Jun 2013 06:59:47 -0700 (PDT) In-Reply-To: <51C308EC.6090300@apache.org> References: <51C2A5F2.8000202@apache.org> <51C308EC.6090300@apache.org> Date: Thu, 20 Jun 2013 15:59:47 +0200 Message-ID: Subject: Re: Cocoon 3.0 components From: gelo1234 To: Cocoon Users Content-Type: multipart/alternative; boundary=089e0149cd8af0695b04df965b9c X-Virus-Checked: Checked by ClamAV on apache.org --089e0149cd8af0695b04df965b9c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes. It works!! Thank you. I thought it was just a dummy example :) That is what I need :) Greetings, Greg 2013/6/20 Francesco Chicchiricc=F2 > On 20/06/2013 15:37, gelo1234 wrote: > > > Any idea how to get HTTP Header named Host ? > > > Doesn't jexl:cocoon.request.serverName work? > > > or any other HTTP Header value ? [1] > > tried cocoon.request.header['Host'], cocoon.request.header.host without > effect > > I managed to get only requestURL: > > > > Greetings, > Greg > > [1] > http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest= .html > > > 2013/6/20 Francesco Chicchiricc=F2 > >> >> 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=F2 >> >> ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member >> http://people.apache.org/~ilgrosso/ >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >> For additional commands, e-mail: users-help@cocoon.apache.org >> >> > > > -- > Francesco Chicchiricc=F2 > > ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Memberhttp://peop= le.apache.org/~ilgrosso/ > > --089e0149cd8af0695b04df965b9c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Yes. It works!! Thank you. I thought it was just= a dummy example :)
That is what I need :)

Greetings,=
Greg



2013/6/20 Francesco Chicchiricc=F2 <ilgrosso@apache.org>
=20 =20 =20
On 20/06/2013 15:37, gelo1234 wrote:

Any idea how to get HTTP Header named Host ?

Doesn't jexl:cocoon.request.serverName work?
=

or any other HTTP Header value ? [1]

tried cocoon.request.header['Host'], cocoon.request.header.host without effect

I managed to get only requestURL:

<map:parameter name=3D"host" value=3D"{jexl:cocoon.request.requestURL}"/>

Greetings,
Greg

[1] http://docs.oracle.com/javaee= /6/api/javax/servlet/http/HttpServletRequest.html


2013/6/20 Francesco Chicchiricc=F2 <ilgrosso@apache.org>

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/pr= oper/commons-jexl/reference/syntax.html
--
Francesco Chicchiricc=F2

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://people.apache.org/~ilgrosso/


---------------------------------------------------= ------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apac= he.org
For additional commands, e-mail: users-help@cocoon.apache.or= g




--=20
Francesco Chicchiricc=F2

ASF Member, Apache Syncope PMC chair, Apache Cocoon PMC Member
http://pe=
ople.apache.org/~ilgrosso/

--089e0149cd8af0695b04df965b9c--