Hello Temp,

It seems like you want to use a combination of the
nested bean property naming and list-backed properties.

I think your property name in the form element will be
something like

mybean.prop


which will result in form.getMybean().setProp() when
the form is submitted.

I believe your setProp() should accept a String[]
(array) rather than just a single String. Each of
the items that is selected will be passed into setProp()
inside this array.

You may need to name your method setProps() (notice
the 's' in the name) -- I'm not totally sure.

Good luck,

Mike


> -----Original Message-----
> From: temp temp [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 30, 2005 12:34 PM
> To: user@struts.apache.org
> Subject: bean in a Actionform
> 
> 
> I have an actionform which contains  a bean as a
> property. This bean has  getter and setter methods 
> for few Strings . 
> 
> 1. How to display   properties from this bean  in my
> jsp in a  list . 
> 
> And when the form  is submitted 
> 
> 2. Can I automatically  populate my bean in actionform
>  with the values selected from the list when the form
> is submitted ?
> 
> thanks & regards
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> 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