日期:2014-05-18  浏览次数:20703 次

jstl严重问题
weblogic7、使用JSTL1.1里面的c.tld。
c.tld放在WEB-INF下,在web.xml里配置
<taglib> <taglib-uri> http://java.sun.com/jsp/jstl/core </taglib-uri>
<taglib-location> /WEB-INF/c.tld </taglib-location> </taglib>
jstl.jar和standard.jar两个包也加载了。
在jsp里写了 <%@taglib   prefix= "c "   uri= "http://java.sun.com/jsp/jstl/core "   %>
用tomcat5.5.23访问jsp没有任何问题,但是用weblogic7访问jsp提示如下:

Parsing   of   JSP   File   '/manage/buyLogin.jsp '   failed:
--------------------------------------------
  /manage/buyLogin.jsp(-1):   cannot   load   TLD:   weblogic.xml.dom.ChildCountException:   missing   child   tagclass   in   tag
probably   occurred   due   to   an   error   in   /manage/buyLogin.jsp   line   -1:

------解决方案--------------------
你再检查一下你的weblogic.xml感觉你的配置文件出问题了。有一个TAG缺少子TAG。