Share the post "How To Access A Hashtable Property Using JSTL"
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 "Access Servlet Session Attribute Using JSTL"
In Java this piece of code, request.getSession().getAttribute(“my_var”) can be accessed using JSTL with the sessionScope keyword. To access my_var, call sessionScope.myvar.
Remember to use sessionScope because if your Java code looks like this: request.getAttribute(“my_var”) will not work. See sample JSTL code below.
|
1 |
<c:out value="${sessionScope.my_var}"/> |