javascript - Accessing a Java Map inside a scriptlet -
i've got java map object imported jsp file i'm working with. need take each entry of map , put table in jsp. i'm not going act i'm super knowledgeable scriptlets, can tell they're evaluated before running , placed code, makes accessing individual entries challenge. i've got working doing tostring on map , using regexs parse out info, want more safely.
how achieved?
i assuming map of map<integer,string>() type;
<ul> <% for(integer key : yourmap.keyset()) { string value = data.get(key); system.out.printf("%s = %s%n", key, value); %> <li><%= value%></li> <% } %> </ul>
Comments
Post a Comment