I'm not sure that makes sense. At the end, the client is just getting some html with a regular 'option' tag in it. The best you can do is set pass some unique id for the key and then fetch the object back when the form is submitted with the unique key
-----Original Message----- From: akash agrawal [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2008 3:59 PM To: Struts Users Mailing List Subject: Re: select tag list listKey and listValue usage In the value attribute I am expecting to see the name (name is a property on my bean) and I get that correctly by specifying listValue="name". In the listKey, I would like to set the object itself instead of another property. Further when this form is submitted the whole object is set on the action. Does this clarify? Thx. --- On Wed, 6/11/08, Dave Newton <[EMAIL PROTECTED]> wrote: > From: Dave Newton <[EMAIL PROTECTED]> > Subject: Re: select tag list listKey and listValue usage > To: "Struts Users Mailing List" <user@struts.apache.org> > Date: Wednesday, June 11, 2008, 12:52 PM > --- On Wed, 6/11/08, akash agrawal > <[EMAIL PROTECTED]> wrote: > > How do I populate listKey with the object itself? > > What would that mean? What are you expecting to see in the > "value" attribute of the HTML <option...> > element? > > Dave > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]