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
Solved

Using HashMap in the struts <html:option> tag

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Some of the SEO trends we might expect in 2017.
This article describes how to reset your Windows 10 password when you've forgotten it.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 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