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

关于jstl和el表达式失效的解决办法

<%@ page isELIgnored="false"%>加上这个

?

?

关于j2ee中jstl标签不能使用则需要

?

在web.xml中加上

?

?<jsp-config>

??<taglib>

???<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>

???<taglib-location>/WEB-INF/c.tld</taglib-location>

??</taglib>

??<taglib>

???<taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri>

???<taglib-location>/WEB-INF/x.tld</taglib-location>

??</taglib>

??<taglib>

???<taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>

???<taglib-location>/WEB-INF/fmt.tld</taglib-location>

??</taglib>

??<taglib>

???<taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri>

???<taglib-location>/WEB-INF/sql.tld</taglib-location>

??</taglib>

?</jsp-config>

?

?

然后导入相应的tld文件和jar包