HashMap hm = new HashMap(); hm.put("id", "101"); hm.put("name", "java");
now i want use struts tag to display value of ID key. is there any way i can pass KEY and i can get value for that key. i dont wat to iterate.
Thanks in advance
posted 10 years ago
Struts is smart enough to know when an object implements the Map interface, so all you have to do is give the key value as the property. For example, the following tag will display "java" in your example: