JSTL的${test}这种方式不能显示?
<c:set value="100" var="test"></c:set>
${an}
<br/>
<c:out value="${test}"></c:out>
显示结果:
${test}
100
我是使用了JSTL1.1的包,而且在以前的项目中.用的这两个JAR。${test} 是正确显示的
所以JAR肯定是没问题的
WEB.XML的配置
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
应该也没问题的
使用的时候
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
引入的应该也没问题的
所以求教,怎么才能正常的让${test} 显示出100????