permaculture playing cards*
The moose likes Struts and the fly likes struts dynavalidatorBean with HashMap & JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts dynavalidatorBean with HashMap & JSTL" Watch "struts dynavalidatorBean with HashMap & JSTL" New topic

struts dynavalidatorBean with HashMap & JSTL

Hiren Pathak

Joined: Mar 24, 2003
Posts: 21
I am using a struts dynavalidator form and have specified a property as HashMap. I am using this hashmap to display & retrieve checkbox values. Now to display the check boxes, I am using JSTL for loop and dynamically retrieve hashmap values. I am not being able to get the value when I create a dynamic key for the map. Check out the code below.

I am not able to retrieve the value for the checkbox at line no. 13 & 14. I would appreciate any kind of help.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60798

Please be sure to post Struts questions in the Struts forum. I have moved this post there for you.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Hiren Pathak

Joined: Mar 24, 2003
Posts: 21
sorry for the wrong placement.. actually it was more related towards JSTL so thought of putting it under JSP.
I agree. Here's the link:
subject: struts dynavalidatorBean with HashMap & JSTL
Similar Threads
how to map list of object from jsp to command object in spring
JSTL <c:forEach .../> tag not working with collection
Object does not support property error!
HashMap Output to Datatable
setting hashmap value using jstl