I am having some problems writing a if-then-else condition for my jsp page. I think the issue is with my quotes. Also is it possible to use JSTL in javascript?
Code
<c:choose>
<c:when test= "'<%=request.getSession().getAttribute("userName")%>' == Guest">
<button class="btn" id="getCitizens" onclick="DoGuestAccess()" type="button">Guest Access</button>
</c:when>
<c:otherwise>
<button class="btn" id="getCitizens" onclick="DoUsersAccess()" type="button">User Access</button>
</c:otherwise>
</c:choose>
Error
org.apache.jasper.JasperException: /WEB-INF/jsp/newpage.jsp (line: 485, column: 71) equal symbol expected