struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Pink <s.p...@ctru.auckland.ac.nz>
Subject RE: Html Option Tag - how to retrieve selected collection item?
Date Fri, 22 Jun 2007 01:00:08 GMT
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:jmikus@gmail.com] 
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 <s.pink@ctru.auckland.ac.nz> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message