cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kai Bruns" <br...@dialog.uni-oldenburg.de>
Subject RE: multiple values from a form
Date Thu, 23 May 2002 07:51:15 GMT

Hi Axel,

> Dear Cocoon users!
>
>Could some kind soul please send me some sample code how to cope with
>the result of <xsp-request:get-parameter-values/> with Cocoon 1.8.2? I
>somehow seem to be unable to figure out myself...
>

I don't exactly know what <xsp-request:get-parameter-values/> does in
Cocoon 1.8.x, but I guess it's a tag from a taglib that simply wraps
request-object in a XSP-page. And I guess you have to use it with an
attribute like "name" or something to specify the request parameter to use.

>background: A form offers the user the choice to select several values
>for a single attribute (each value encoded as a single char, e.g. "T",
>"G", etc.). I'd like to concatenate all different chars into a single
>string and save it into a database column. So far I've managed to
>connect to the database and collect all the other form variables, but
>this multiple value thing is driving me crazy... I've tried pure xslt,
>combined with Java, pure Java (as I've found in some other example) --
>all to no avail.
>

I preferred using java-code directly in XSP. Try

String[] values = request.getParameterValues("yourParameterName");

within an <xsp:logic> tag an use 'values' to build whatever you want ;-)

>Any hint & tip would be very much appreciated!
>Upgrading to Cocoon2 unfortunately is not an option.
>
>Thanx!
>Axel
>
>--
>axel@globonaut.org                         http://www.globonaut.org
>  You are young once only but you can stay immature indefinitely.
>PGP Fingerprint: 9AAB CEBC CB6C 7C20 BEBC  4B88 3E2E A5CA 57F4 D70B
>
>
>---------------------------------------------------------------------
>Please check that your question has not already been answered in the
>FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
>To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail: <cocoon-users-help@xml.apache.org>

Hope this helps,

     Kai


Dipl.-Inform. Kai Bruns
regio gmbh
Institut für Regionalentwicklung und Informationssysteme
an der Carl von Ossietzky Universität Oldenburg
D-26111 Oldenburg
Tel ++49 (0)441 798-2827
Fax ++49 (0)441 798-3002
eMail bruns@regio.uni-oldenburg.de
http://www.regio.uni-oldenburg.de





---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message