Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 80297 invoked from network); 4 Jun 2008 19:51:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2008 19:51:33 -0000 Received: (qmail 1010 invoked by uid 500); 4 Jun 2008 19:51:26 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 980 invoked by uid 500); 4 Jun 2008 19:51:26 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 969 invoked by uid 99); 4 Jun 2008 19:51:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 12:51:26 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of felipe.lorenz@gmail.com designates 66.249.92.169 as permitted sender) Received: from [66.249.92.169] (HELO ug-out-1314.google.com) (66.249.92.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 19:50:36 +0000 Received: by ug-out-1314.google.com with SMTP id h3so379291ugf.23 for ; Wed, 04 Jun 2008 12:50:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=kLjC7/RG4sY7LMRKTr36crXmmdqIcD0tg3JGIwhDqXU=; b=PiLeCkcgA34KaXefVUbLBPE07UvIdbYyUn+IKiGB428egdPGPawN7pEOKGNL1NqvlS OCrIMFeCTckUfwEaEMQU7zgvdedYHSHTujOddjrUvB1xq6+cJEtQ8OtM3sQ5RRlnKHPB ReXtq9kE87xG04BrBkcIrJOITDDuzJkrsqG+o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=pziwEuu9gAuQJGj1IUrSOr29hHvXUnJFOmUmqTcdVrnO60IQ9LJrLApuBN0vO87RqW HPZQqpp/5fwdOa8zFGPsNf5F/kC7bDgV1hF2RJAAfp3KYZ8rro3p62RYrvS8wXOWdW1+ lpTGi5U0nge9Qj6CZ4YeGDmlAYx53Char8er0= Received: by 10.78.143.19 with SMTP id q19mr271418hud.114.1212609051826; Wed, 04 Jun 2008 12:50:51 -0700 (PDT) Received: by 10.78.176.19 with HTTP; Wed, 4 Jun 2008 12:50:51 -0700 (PDT) Message-ID: Date: Wed, 4 Jun 2008 16:50:51 -0300 From: "Felipe Lorenz" To: "Struts Users Mailing List" Subject: Re: Getting a s:select selected value In-Reply-To: <17654835.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10323_23376822.1212609051814" References: <17566943.post@talk.nabble.com> <17631862.post@talk.nabble.com> <17634268.post@talk.nabble.com> <17654835.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_10323_23376822.1212609051814 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline use javascript for this problem... On Wed, Jun 4, 2008 at 4:35 PM, piltrafeta wrote: > > If i put key="maxCoord" it continues taking the value from the listbox of > the > first record... > > > > > styl9090 wrote: > > > > Try changing this line, > > > > to > > > > then, your variable(maxCoord) will hold the selected value from the list > > box. > > > > > > > > piltrafeta wrote: > >> > >> Actually session.coordValues has a list with numbers from 1 to 10, and > >> this is correct... > >> The thing is that it takes maxCoord as an array. And it returns only the > >> first element, which means the value in the first select of the list of > >> records. > >> > >> I've tried creating only one form for all the records and what i obtains > >> in my maxCoord is a list with the values for each record. > >> > >> > >> > >> Laurie Harper wrote: > >>> > >>> The most likely explanation would be that your option values collection > >>> (session.coordValues) has empty or inconsistent key values. Check that > >>> it contains what you think it does. > >>> > >>> L. > >>> > >>> piltrafeta wrote: > >>>> Hi , > >>>> i have a jsp with some forms like this : > >>>> > >>>> > >>>> > >>>> Accept > > >>>> > >>>> > >>>> > >>>> > >>>> Reject > >>>> > >>>> > >>>> > >>>> > >>>> >>>> headerValue="" headerKey="" > list="#session.coordValues" > >>>> size="1" multiple="false" /> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> and in my JavaActionClass i have a attribute with the same name as the > >>>> select element : > >>>> private String maxCoord; > >>>> public String accept() { > >>>> print(maxCoord); > >>>> return SUCCESS; > >>>> } > >>>> public String getMaxCoord() { > >>>> return maxCoord; > >>>> } > >>>> public void setMaxCoord(String maxCoord) { > >>>> this.maxCoord = maxCoord; > >>>> } > >>>> when i'm printing the maxCoord value, i only obtanins the correct > value > >>>> if i > >>>> select the first form in my jsp class... if i chose any of the other i > >>>> get > >>>> an empty string. > >>>> Can you halp me with this please ? > >>>> Thanks > >>> > >>> > >>> --------------------------------------------------------------------- > >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > >>> For additional commands, e-mail: user-help@struts.apache.org > >>> > >>> > >>> > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Getting-a-s%3Aselect-selected-value-tp17566943p17654835.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > > ------=_Part_10323_23376822.1212609051814--