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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -