日期:2014-05-16  浏览次数:20403 次

JSTL 的问题(According to TLD or attribute directive in tag file, attribute value do

环境: win2003 tomcat 5.5 JDK1.6上

<? xml?version="1.0"?encoding="UTF-8" ?>
< web-app? 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" ? >

</ web-app >

jsp代码:

<% @taglib?prefix = " c " ?uri = " http://java.sun.com/jsp/jstl/core " ? %> ????
???
1+2+3?=?${1+2+3}?
< br > ????
1+2+3?=?
< c:out? value ="6" ? /> ?? < br > ?

此时执行没有任何问题。

?1+2+3 = <c:out value="${1+2+3}" /> 执 行时就会出现:
According to TLD or attribute directive in tag file, attribute value does not accept any expressions

昨天少了一个jsp,所以一直出现问题。

代码

<%@taglib?prefix="c" ?uri=