File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
getting value from hashmap in JSP using struts tag
Joined: Aug 04, 2003
Aug 08, 2011 07:50:42
I have a hashmap which has object in its value, I want to display value for the key passed in
is hm and it has object obj which is like
private String name;
getter setter for these two.....
hm.put ("1", obj)
Now in JSP I want to display name for the object with key 1 and key 2.
When I try like this <html:text property="hm.1" /> it gives object, but I want to display name in object with key 1.....
Please suggest solution for this...
Thanks in advance.
I agree. Here's the link:
subject: getting value from hashmap in JSP using struts tag
why am i getting a null value on fetching from map
HashMap - Get value by passing key
Displaying values in JSP using Struts Tag
iterating over a HashMap containing ArrayList as value
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014