I have a list of labelValueBean, i.e. Which is used to populate the values in a drop down box.
I want to display this selected value in a printer Friendly page. I am getting only the 'key' from the labelvaluebean, how can I get the actual value using bean:write
Joined: Feb 15, 2005
The LavelValue bean does not extend java.util.Map, so it has no lookup function. If you want to be able to lookup the value from the key, use HashMap, or Treemap if you want the map to be in order by key. Use the key for the value and the value for the label.
In your regular JSP, you can represent it like this: