Link to home
Start Free TrialLog in
Avatar of mikehalfsheen
mikehalfsheen

asked on

Using HashMap in the struts <html:option> tag

Hi,
I know you can use a HashMap with the otpions like:-
      <html:options collection="userBaskets" property="key" />
but if the value of in HashMap is an object, how do you use a property of the value as the label,

eg   <html:options collection="userBaskets" property="key" labelproperty="value.getName()"/>
ASKER CERTIFIED SOLUTION
Avatar of TimYates
TimYates
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you post some code? (assuming that doesn't work)?
Avatar of mikehalfsheen
mikehalfsheen

ASKER

lovely ;)
:-)  Woo!  

Good luck!

Tim