我有这个代码
<%!
public String class_name = "";
%>
<c:choose>
<c:when test="${WCParam.categoryId != null}">
<% class_name = "my_account_custom"; %>
</c:when>
<c:otherwise>
<% class_name = "my_account_custom_3"; %>
</c:otherwise>
</c:choose>
<p>Class name = <c:out value='${class_name}' /></p>
WCParam.categoryId 是否为空但我的 class_name 变量始终为空。我做错了什么谢谢