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 -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

Python Tornado package error when running server -