jsp - JSTL : HashMap vs List functionality -
it easy create hashmap in jsp using <jsp:usebean>
, use it
<jsp:usebean id="abc" class="java.util.hashmap"> <c:set target="${abc}" property="position" value="triggerbottom"/> </jsp:usebean>
on other hand, when comes arraylist, not easy. have seen posts solink1 , solink2 people using scriplet bring problem of using pagecontext attributes.
i not able digest haspmap easy use in jstl arraylist not. missing something? there easy way of creating arraylist in jsp, without using scriplet, , use el populate (as can in hashmap).
i using servlet-3.0 , jsp-2.2.
Comments
Post a Comment