In the setDescription pass a string which includes both code and description call.
Or if you don't want to change that object just create a list of LabelValueBean objects which has the right content. or use <html:select ...> <list:iterate ...> <html:option ...>TEXT TO BE DISPLAYED HERE</html:option> ... ... - Dan > Wit, > > My baseAbstractVO Class has only setter & getter methods. > The baseAbstractVO.vehicleLineList is an arrayList > which contains > code and Description in the form of an temp Object. > > if (rs.getString(1) != null) { > > commonVO.setCode(rs.getString(1).trim()); > } else { > commonVO.setCode(""); > } > > if (rs.getString(2) != null) { > > commonVO.setDescription(rs.getString(2).trim()); > } else { > > commonVO.setDescription(""); > } > arrayList.add(commonVO); > > > > The arrayList is the vehicleLineList... > > Warm Regards > Shreekanth > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 11, 2003 4:42 PM > To: Struts Users Mailing List > Subject: Re: Drop Down - Code and Description > > > Dear Shree: > > Can you copy-and-paste the code for the JavaBean that was referred by > request (or session).getAttribute("baseAbstractVO")? > > wit > > > > > > > "Rama, Shreekanth (K.)" <[EMAIL PROTECTED]> > 12/11/2003 04:33 PM > Please respond to "Struts Users Mailing List" > > > To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > cc: > Subject: Drop Down - Code and Description > > > Hi ALL, > > I have a problem in the drop down in the > application.. > > <html:select > property="baseAbstractVO.vehLineCode" size="1"> > <html:optionsCollection > property="baseAbstractVO.vehicleLineList" value ="code" > label="description"/> > </html:select> > > > I want to have both code and description of > the selected > item from > the drop down box. > > Any Help Pls ?? > > Regards > Shreekanth --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]