jbuilder2005
weblogic8.1web.xml中:
<taglib>
<taglib-uri>http://java.sun.com/jstl/functions</taglib-uri>
<taglib-location>/WEB-INF/fn.tld</taglib-location>
</taglib>fn.tld也复制到web-inf目录下了jsp页面中:
<%@taglib uri="/WEB-INF/fn.tld" prefix="fn"%>jbuilder报错:
<2007-4-21 下午10时06分54秒 CST> <Warning> <HTTP> <BEA-101248> <[E:\testStruts\testStruts\webApp]: Deployment descriptor "/WEB-INF/fn.tld" is malformed. Check against the DTD: cvc-elt.1: Cannot find the declaration of element 'taglib'. (line 6, column 17).> Errors encountered while compiling 'E:/testStruts/testStruts/webApp' :Translation of /page.jsp failed: (line 7): Error in using tag library uri='/WEB-INF/fn.tld' prefix='fn': Tag Library Descriptor contains no Tag descriptions
请问各位 该怎么办?
weblogic8.1web.xml中:
<taglib>
<taglib-uri>http://java.sun.com/jstl/functions</taglib-uri>
<taglib-location>/WEB-INF/fn.tld</taglib-location>
</taglib>fn.tld也复制到web-inf目录下了jsp页面中:
<%@taglib uri="/WEB-INF/fn.tld" prefix="fn"%>jbuilder报错:
<2007-4-21 下午10时06分54秒 CST> <Warning> <HTTP> <BEA-101248> <[E:\testStruts\testStruts\webApp]: Deployment descriptor "/WEB-INF/fn.tld" is malformed. Check against the DTD: cvc-elt.1: Cannot find the declaration of element 'taglib'. (line 6, column 17).> Errors encountered while compiling 'E:/testStruts/testStruts/webApp' :Translation of /page.jsp failed: (line 7): Error in using tag library uri='/WEB-INF/fn.tld' prefix='fn': Tag Library Descriptor contains no Tag descriptions
请问各位 该怎么办?
解决方案 »
- OpenSessionInView的配置问题
- jspsmartupload与smartupload有区别吗?为何我的代码报错
- 如何让 request.getParameter() 正常地接收上一个网页传来的中文字符?
- JSP问题,一段看不懂的代码。
- Resin服务器编码问题?
- JSP的乱码
- 奇怪底问题,为什么我用TOMCAT+ACCESS,通过ODBC连接数据库,在点击次数多了后,会出现客户区操作太多,WHY???
- 各位老大,我有个问题,请看!
- jsp在线购物系统
- 求大神指点,关于jsp页面通过元素id删除跳转到Servlet的问题
- 禁止页面后退。确实有效的给80
- jsp新手有关文件上传及组件问题...达人帮帮忙啊
或者不用写,直接在页面用<%@ taglib uri="http://java.sun.com/jstl/functions" prefix="fn" %>
如果你的web.xml是2.3或以前的版本,那你要查一查看看是不是路径的问题了~
1、web.xml版本:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">2、如果直接在页面用<%@ taglib uri="http://java.sun.com/jstl/functions" prefix="fn" %> 在jbuilder中编译时会报错
或者标签名写错了,
或者你就没包含对应的taglib和它的jar包~
如果你在web.xml文件中声明了taglib的位置,页面上就该这样引用:
web.xml中:
<taglib>
<taglib-uri>http://java.sun.com/jstl/functions</taglib-uri>
<taglib-location>/WEB-INF/fn.tld</taglib-location>
</taglib>fn.tld也复制到web-inf目录下了jsp页面中:
<%@taglib urihttp://java.sun.com/jstl/functions" prefix="fn"%>
===================================
如果想直接应用,就不要再web.xml中声明了,知道不!
在2.3及以前,还是先要在web.xml中声明的~