<%@ page contentType="text/html; charset=utf-8"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><c:set var="a" value="b" /><c:set var="${a}" value="c" />${b}请问用${b}取到的值是什么?使用resin-3.1.4服务器,获取的值为空;使用tomcat6.0则报错: According to TLD or attribute directive in tag file, attribute var does not accept any expressions
1 回答

慕慕森
TA贡献1856条经验 获得超17个赞
两个容器实现的jstl方式不一样,但是结果是肯定的,就是“这样用是不对!”
具体可以看看两个容器的代码实现,tomcat的比较周到,会检测key值是不是合法。
resin没用过不知道,感觉它好像是是
try{
xxx();
}catcht(Exception e){
//None
}
添加回答
举报
0/150
提交
取消