• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

s:bean, s:set can individual HashMap Values be retrieved?

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using a bean to call a class. Its not an action class just a simple class. The class returns a HashMap which I am putting into a struts s:set. The hashmap is definately in the s:set but I cannot retrieve individual values.

My question is how do I retrieve an individual value from the HashMap in s:set?

Here is the Code:



If I try and retrieve individual values from HashMap in s:set nothing is returned:




I Know that the values are in s:set because the following code iterates through the HashMap returning all the values:



Returns:


Cant figure out how to retrieve an individual value from the HashMap stored in s:set

Any help would be apprecited.

Thanks,
earl
 
E Robb
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This works for retrieving individual values from the HashMap that is in the struts s:set tag


earl
 
machines help you to do more, but experience less. Experience this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic