Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 81355 invoked from network); 30 Jun 2006 16:23:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Jun 2006 16:23:37 -0000 Received: (qmail 73966 invoked by uid 500); 30 Jun 2006 16:23:33 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 73899 invoked by uid 500); 30 Jun 2006 16:23:32 -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 73888 invoked by uid 99); 30 Jun 2006 16:23:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 09:23:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [82.175.126.194] (HELO pegasus.olympus.borgus.nl) (82.175.126.194) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 09:23:31 -0700 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 Content-Class: urn:content-classes:message Importance: normal Priority: normal MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: server side validation using cocoon flow script Date: Fri, 30 Jun 2006 18:23:08 +0200 Message-ID: <6DD7194CCE91BB44A41318EA7D06151055D2CB@pegasus.olympus.borgus.nl> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: server side validation using cocoon flow script thread-index: AcacK9YHXESfom51RV+uC/CbIj3aHAANIQXA From: "Geert Josten" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Pass the request parameters to your XSL and insert these as the 'initial' value of the input fields. You need a few steps to achieve this: - either call the xsl with: or pass each request-param as a separate parameter to the XSL call. - define an for each of the request parameters in your XSL - define the input fields in your XSL like for instance: The request-parameters should boil through from initial request to the pipeline called with sendPage(AndWait).. Kind regards, Geert >=20 =20 =20 Drs. G.P.H. Josten Consultant =20 =20 Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 www.daidalos.nl De informatie - verzonden in of met dit emailbericht - is afkomstig van = Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u = dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te = verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. =20 > Van: rahul.manavi@tcs.com [mailto:rahul.manavi@tcs.com]=20 > Verzonden: vrijdag 30 juni 2006 11:56 > Aan: users@cocoon.apache.org > Onderwerp: server side validation using cocoon flow script >=20 >=20 > Hi,=20 >=20 > I'm using cocoon 2.1.8. I am using HTML form inside my XSL's.=20 > ( I could have used CForms, but at this moment it will be a=20 > bigger change for me, as I have to change at many places. Too=20 > late to make this change. ).=20 >=20 > What I need :=20 > In this case i'm accessing request parameters from the form=20 > inside flow script function. If any of them is empty i have=20 > to send it back pre-filled with other choices that user has entered.=20 > Ex.=20 > If a form has 5 input fields, and user enters only first two=20 > then i have to show a error message alongwith already=20 > pre-filled choices 1 and 2=20 >=20 > Here I'm able to validate and display the error message, but=20 > I can't show the page with pre-filled choices.=20 >=20 > Is there any way for doing this?=20 > Any inputs and suggestions are welcome.=20 >=20 > Thanks in advance, > Rahul > =3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D-----=3D=3D=3D=3D=3D > Notice: The information contained in this e-mail message=20 > and/or attachments to it may contain confidential or=20 > privileged information. If you are not the intended=20 > recipient, any dissemination, use, review, distribution,=20 > printing or copying of the information contained in this=20 > e-mail message and/or attachments to it are strictly=20 > prohibited. If you have received this communication in error,=20 > please notify us by reply e-mail or telephone and immediately=20 > and permanently delete the message and any attachments. Thank you >=20 >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org