dcsimg
<html:options> Iterator
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rodrigo_Costa
Posted On:   Wednesday, July 17, 2002 07:07 AM

I'm trying to populate a list box with values set in my actionForm ("SolicitacaoForm").

In my JSP I put:







I have the method getter and setter to tp_SM, and this
variable is an ArrayList. I've checked and tp_SM have
all values I need.

But it doesn't work, Apache displays this error:

Cannot create iterator for com.solicitacao.SolicitacaoForm@50ed02

Please, somebody could tell me what's wrong?

Thanks a lot,

Rodrigo.

Re: <html:options> Iterator

Posted By:   Yves_Remels  
Posted On:   Friday, July 19, 2002 06:38 PM

This works for me :









-





addressId is the field in my actionForm and contains current value. The option that will be flagged as selected is the one where id == addressId

vAddress is a collection passed in request from my action.



Hope this helps




Y.R.

Re: <html:options> Iterator

Posted By:   Anonymous  
Posted On:   Wednesday, July 17, 2002 11:50 AM

Hi Rodrigo,


I not sure, but I guess that you can try to add multiple attribute to your select tag. Ex:





I hope this can help you!


Fábio Nogueira

About | Sitemap | Contact