Hi all,
m new to JSTL.
i have an action class which is setting one arraylist in request object, code goes like this
request.setAttribute("modelHelperResult",modelHelperResult);
modelHelperResult is an arrayList
now on jsp, i am retriving this arraylist to print its contents, it has all string objects in it.
now for the same purpose i want to use <c:forEach/>
being a new to the world of JSTL, whatever i could read regarding the tag, i coded like this:
<c:forEach var="modelHelperList" items="{modelHelperResult}">
${modelHelperList}
</c:forEach>
its not giving any result, instead its printing ${modelHelperList} as text.
plwase help me regarding the same....
m new to JSTL.
i have an action class which is setting one arraylist in request object, code goes like this
request.setAttribute("modelHelperResult",modelHelperResult);
modelHelperResult is an arrayList
now on jsp, i am retriving this arraylist to print its contents, it has all string objects in it.
now for the same purpose i want to use <c:forEach/>
being a new to the world of JSTL, whatever i could read regarding the tag, i coded like this:
<c:forEach var="modelHelperList" items="{modelHelperResult}">
${modelHelperList}
</c:forEach>
its not giving any result, instead its printing ${modelHelperList} as text.
plwase help me regarding the same....