Our application has a form on the right pane where user can create a request and submit it. After the request is submitted, it will be displayed on the left pane. The left pane lists all the submitted requests in the system.
When user selects one of the requests on the left pane, the data will be populated in the form on the right pane. These data will be displayed in uneditable mode until user selects the 'OPEN' request button. The issue we have is that the values in the dropdown box display the whole list, instead of highlighting the selected values which user has chosen. Regards, <div>-------- Original message --------</div><div>From: Martin Gainty <[email protected]> </div><div>Date:02/21/2015 7:35 PM (GMT-05:00) </div><div>To: Struts Users Mailing List <[email protected]> </div><div>Cc: </div><div>Subject: RE: Select multiple values from a dropdown </div><div> </div>MG>the dropdown list is populated from pets collection located inside the petDao class MG>each value presented is based on unique id value of %{petDao.pets.{id}} MG>*if* you want the dropdown to dropdown you can hang a click handler for dropdown on your submit button MG>I have trouble understanding why you would want to dropdown the selected values upon saving MG>could you explain this strategy? > Date: Sat, 21 Feb 2015 04:50:33 +0000 > From: [email protected] > To: [email protected] > Subject: Re: Select multiple values from a dropdown > > Thanks Muralidhar. I was able to do that. The dropdown is a part of the > request form. Another question is how do I keep the selected values > displayed in the dropdown when the user views the saved request? > > On Friday, February 20, 2015 11:21 PM, Yaragalla Muralidhar > <[email protected]> wrote: > > > the below is the select tag where you can choose multiple values > > <s:select label="Pets" > name="petIds" > list="petDao.pets" > listKey="id" > listValue="name" > multiple="true" > size="3" > required="true" > value="%{petDao.pets.{id}}" > /> > > *Thanks and Regards,* > Muralidhar Yaragalla. > > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* > > On Sat, Feb 21, 2015 at 2:44 AM, lilylove2shop < > [email protected]> wrote: > > > Hi all, > > > > How do I select and display more than one value from a dropdown and > > display them in jsp using struts2? > > > > Thanks > > > > > > > > > > >

