使用jstl标签报错:according to tld or attribute directive in tag file, attribute value--iteye技术网站
2011年09月01日
原来jstl标签版本不一样,标签支持不一样。
jstl1.0标签库不支持表达式,如:
在1.0下面,会报错:
According to TLD or attribute directive in tag file, attribute value
解决办法是使用备用库
它支持表达式
jstl 1.1之后,core就支持表达式了
使用jstl不需要在web.xml文件中配置标签库
只需把jstl.jar和stardard.jar放入WEB-INF/lib目录里,在jsp页面引入
注意1.0和1.1引入标签库的uri不同
1.0引入方式
1.1引入方式
2011年09月01日
原来jstl标签版本不一样,标签支持不一样。
jstl1.0标签库不支持表达式,如:
在1.0下面,会报错:
According to TLD or attribute directive in tag file, attribute value
解决办法是使用备用库
它支持表达式
jstl 1.1之后,core就支持表达式了
使用jstl不需要在web.xml文件中配置标签库
只需把jstl.jar和stardard.jar放入WEB-INF/lib目录里,在jsp页面引入
注意1.0和1.1引入标签库的uri不同
1.0引入方式
1.1引入方式
本文介绍了解决JSTL标签版本不一致导致的问题,特别是针对jstl1.0与1.1之间的差异。文章详细解释了如何正确配置JSTL版本,并指导读者如何在项目中使用正确的JSTL版本避免出现属性值错误。
240

被折叠的 条评论
为什么被折叠?



