How To Access A Hashtable Property Using JSTL
Posted by blogmeister on
June 25, 2009
To access a Hashtable object’s property in JSTL, you can do it like this.
|
1 |
<c:out value="${ht['my_property']}"/> |
Share the post "How To Access A Hashtable Property Using JSTL"
tags: hashtable, jstl
3 Comments
Break A forEach Loop Using JSTL
Posted by blogmeister on
June 21, 2009
To break a c:forEach loop in JSTL, well, is impossible. You would have to add in some extra variables and maybe a varStatus variable to do some conditional statements and break out of the loop if those condition(s) is/are met. If a JSTL attribute did exist to break out of a c:forEach loop, then it would ease programmer’s work of adding extra code to your existing one. But then again, there is none.
tags: break, foreach, jstl, loop
3 Comments
Remove Session Attribute In JSTL
Posted by blogmeister on
June 15, 2009
Removing session attributes using Java code goes like this
|
1 |
request.getSession().removeAttribute("my_var"); |
To do the same thing in JSTL, do this
|
1 |
<c:remove var="my_var" scope="session"/> |












