Solved

Using HashMap in the struts <html:option> tag

Posted on 2004-08-24
4
720 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 250 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
A procedure for exporting installed hotfix details of remote computers using powershell
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now