Using HashMap in the struts <html:option> tag

Posted on 2004-08-24
Last Modified: 2008-03-17
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()"/>
Question by:mikehalfsheen
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
LVL 35

Accepted Solution

TimYates earned 250 total points
ID: 11878968
<html:options collection="userBaskets" property="key" labelproperty=""/>

LVL 35

Expert Comment

ID: 11878972
Can you post some code? (assuming that doesn't work)?

Author Comment

ID: 11879084
lovely ;)
LVL 35

Expert Comment

ID: 11879151
:-)  Woo!  

Good luck!


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
EJB MDB example 4 89
parse example 13 95
how to hide hide popup page refresh second time? 10 162
how to debug htl and js pages 8 53
Direct mail marketing is the act of mailing materials straight to prospective customers. This wide form of marketing is one of the oldest methods of communicating with a geographic based demographic. So is it useful in 2017 and beyond?
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below.…

761 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question