Thanks for the prompt response.

I was hoping I could put in the value field "myCollection[0]", then on the
server side struts would interpret which item in collection to store in the
form.

In other words struts would generate this html and interpret it:
<select name="myBean">
  <option value="myBeanCollection[1]">bar</option>
</select>

It doesn't look like it is possible unfortunately.

-----Original Message-----
From: Michael Jouravlev [mailto:[EMAIL PROTECTED] 
Sent: Friday, 22 June 2007 12:49 p.m.
To: Struts Users Mailing List
Subject: Re: Html Option Tag - how to retrieve selected collection item?

On 6/21/07, Simon Pink <[EMAIL PROTECTED]> wrote:
> ...
> What I want to do is, rather than send the id in the value field, send 
> the actual bean.
> ...

You cannot send a Java object from a browser.

---------------------------------------------------------------------
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]

Reply via email to