我有以下代码:
<%@ 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>
但是,当我使用 传递 URL 时?action=view
,它不会显示VIEW
.
我哪里错了?