wood burning stoves 2.0*
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 Java 8 in Action this week in the Java 8 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
html:options won't work with Map
get the sysmonth and year in drop down box.
How do I use html:select?
ArrayList in <HTML:SELECT> tag
JPA and static inner class, possible?