dimanche 18 décembre 2016

Function check session attribute with jstl

I want add function return type of access in my session , its work with this code but i want use jstl in jsp , can you offer any idea ?

if (String.valueOf(session.getAttribute("acces")).equalsIgnoreCase("admin")) {
            %>
            <li class="page_item"><a href="Admin">Admin</a></li>
            <%
                } else {
            %>
            <%
                }
            %>




Aucun commentaire:

Enregistrer un commentaire