String type = request.getParameter("type");
type = type == null ? "basic" : type; <c:if test="${type=='basic'}">
。
</c:if>
这里怎么写的?第2个问题String test = "test";怎样用JSTL,或者el输出 test
type = type == null ? "basic" : type; <c:if test="${type=='basic'}">
。
</c:if>
这里怎么写的?第2个问题String test = "test";怎样用JSTL,或者el输出 test
这是后台代码吧,用EL不可以访问的,除非用<%%>
basic
</c:if>
<c:if test="${type!=null}">
${type}
</c:if>
2.${test }
<%
String test = "a";
%>
${test}
test没有被打印
相当于调用request.getParameter()方法