Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 45906 invoked from network); 12 Dec 2006 11:54:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Dec 2006 11:54:50 -0000 Received: (qmail 52768 invoked by uid 500); 12 Dec 2006 11:54:53 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 52698 invoked by uid 500); 12 Dec 2006 11:54:53 -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 52687 invoked by uid 99); 12 Dec 2006 11:54:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Dec 2006 03:54:53 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [213.163.43.215] (HELO amrhun002.amrhungary.albmolecular.com) (213.163.43.215) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Dec 2006 03:54:43 -0800 Received: from amrhunexch1.amrhungary.albmolecular.com (amrhunexch1.amrhungary.albmolecular.com) by amrhun002.amrhungary.albmolecular.com (Clearswift SMTPRS 5.2.5) with ESMTP id for ; Tue, 12 Dec 2006 12:54:18 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: pass checkbox values through sitemap Date: Tue, 12 Dec 2006 12:54:18 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: pass checkbox values through sitemap thread-index: Accd4GfAob2W2NvGS2OzxOfJoGeKPQAAq/yg From: "Varga, Zsombor" To: X-Virus-Checked: Checked by ClamAV on apache.org Hi, Why do you want to pass the request parameters to the generator? The generator has the request object, which contains all the parameters, and lots of other properties. You can use either the request.getParameter(String paramName) /*it returns a String value*/ method, or request.getParameterValues(String paramName) /*this return a String[]*/. Or you can use the xsp taglib.=20 In your example, I'd do something like this, in my generator: String checkBoxValues =3D request.getParameterValues("sameName"); and in the site map: .... =09 Zsombor > -----Original Message----- > From: sofro [mailto:sofro@centrum.sk]=20 > Sent: Tuesday, December 12, 2006 12:26 PM > To: users@cocoon.apache.org > Subject: pass checkbox values through sitemap >=20 >=20 > Hi, > =09 > I have problem how to pass checkbox values through sitemap. >=20 > I have a XHTML form: >=20 >
> > > > > >
>=20 > request after submit looks like this: >=20 > =09 > callSomething?sameName=3Dvalue1&sameName=3Dvalue2&sameName=3Dvalue3& > submit=3DSubmit >=20 > And question is how to pass those values to generator in sitemap: >=20 > > > > src=3D"http://localhost/?sameName=3D{sameName}"/> > > > >=20 > When I call this: > http://localhost/?sameName=3D{sameName} > id adds only first value. >=20 > And this does not send anything. > > value=3D"true"/> >=20 >=20 > Renaming sameName parameter to sameName1, sameName2, ... is=20 > not an option. >=20 > Please help. Maybe it's a really newbie question, but I need=20 > to hack an existing sitemap to support this and I don't want=20 > to see Cocoon again. >=20 > BTW I'm using Cocoon 2. >=20 > Thanks. > -- > View this message in context:=20 > http://www.nabble.com/pass-checkbox-values-through-sitemap-tf2 > 806933.html#a7831351 > Sent from the Cocoon - Users mailing list archive at Nabble.com. >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org