Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using HashMap in the struts <html:option> tag

Posted on 2004-08-24
4
Medium Priority
?
818 Views
Last Modified: 2008-03-17
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()"/>
0
Comment
Question by:mikehalfsheen
  • 3
4 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 1000 total points
ID: 11878968
<html:options collection="userBaskets" property="key" labelproperty="value.name"/>

?
0
 
LVL 35

Expert Comment

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

Author Comment

by:mikehalfsheen
ID: 11879084
lovely ;)
0
 
LVL 35

Expert Comment

by:TimYates
ID: 11879151
:-)  Woo!  

Good luck!

Tim
0

Featured Post

Industry Leaders: 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

In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

877 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