This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Unable to get Set / Map from a Object in html:optionsCollection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to get Set / Map from a Object in html:optionsCollection" Watch "Unable to get Set / Map from a Object in html:optionsCollection" New topic
Author

Unable to get Set / Map from a Object in html:optionsCollection

Joshua Emerson
Greenhorn

Joined: Apr 21, 2008
Posts: 19
Hi,

I'm having an object in request called group. group is having a map and a set inside it. I need to get the set and map using htmlptionsCollections. Here is the below code for reference

group.getGroupSpecificNamesMap()
group.getGroupSpecificEmployeeDetailsSet()

<htmlptionsCollection name = "group.getGroupSpecificNamesMap()" label="employeeName" value="employeeId"/>

What modification is needed in the above struts code.

Environment : Struts1.x and Hibernate

Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to get Set / Map from a Object in html:optionsCollection
 
Similar Threads
How do I use html:select?
ArrayList in <HTML:SELECT> tag
html:options won't work with Map
get the sysmonth and year in drop down box.
JPA and static inner class, possible?