I have the following code:
<%@ page language="java" session="true" contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<% 
request.setAttribute("action", request.getParameter("action"));
%>
<c:choose>
    <c:when test="${action == null}">
        NULL
    </c:when>
    <c:when test="${action == view}">
        VIEW
    </c:when>
</c:choose>
However when I pass URL with ?action=view, it doesn't show VIEW.
Where am I going wrong?
 
     
    