关于JSP2.0中的问题,用过JSTL的和EL的进
我的EL代码,总是不被我wwb服务器解析,请问怎么回事?
代码如下:
<%@ page contentType = "text/html;charset=GB2312" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<title>Test you first Page whice use the jstl</title>
</head>
<body>
<c:out value="Welcome to the first JSTL Page"/><br>
your exploer is:
<c:out value="${header['User-Agent']}" />
<c:set var="a" value="David O'Daviex" />
<c:out value="David O'Davies" escapeXml ="true" />
</body>
</html>
运行后,输出如下:
Welcome to the first JSTL Page
your exploer is: ${header['User-Agent']} David O'Davies
请高手指点一下。
我在web-inf目录中建立了lib目录,下面有jstl.jar,standard,jar文件。