• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Struts - Using Nested Beans

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks !.
It worked...
 
You don't like waffles? Well, do you like this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic