• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Struts - Using Nested Beans

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the code below, I want to list for each employee, the name , the email and the options of countries. I am using the following code to use the nested beans in Struts but the comboBox is not appearing. Does somebody know how I can insert a combo inside a nested bean ?? . The comboBox is supposed to load name of countries as shown below.....


<nested:iterate property="employees">
Employee: <nested:text property="empName"/>
E-mail: <nested:text property="email"/><br/>
Country :<html:select name="country" property="Name" indexed="true">
<html ptions collection="country" property="value"/>
</html:select>
</nested:iterate>

Thanks,....
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just finished doing something similar.



This is made so that each row has it's own selectBox, which I think you'll need to do.

I think your problem is that you're assigning multiple values to a single form parameter, which won't work.
Hope that helps.
[ November 12, 2004: Message edited by: Karl Beowulph ]
 
alan kent
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks !.
It worked...
 
Something must be done about this. Let's start by reading this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic