游
游委宾
Unregistered / Unconfirmed
GUEST, unregistred user!
出错信息为:
Parsing of JSP File '/tagtest.jsp' failed:
--------------------------------------------------------------------------------
/tagtest.jsp(1): Error in using tag library uri='taglib.tld' prefix='title':
cannot find tag class: 'Title'
probably occurred due to an error in /tagtest.jsp line 1:
<%@ taglib uri="taglib.tld" prefix="title" %>
我已经写了Title.java文件,
下面是taglib.tld的内容
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>titleTag</shortname>
<info>
tag test
</info>
<tag>
<name>titleTag</name>
<tagclass>Title</tagclass>
<bodycontent>JSP</bodycontent>
<info>
Title Tag Test
</info>
</tag>
</taglib>
Parsing of JSP File '/tagtest.jsp' failed:
--------------------------------------------------------------------------------
/tagtest.jsp(1): Error in using tag library uri='taglib.tld' prefix='title':
cannot find tag class: 'Title'
probably occurred due to an error in /tagtest.jsp line 1:
<%@ taglib uri="taglib.tld" prefix="title" %>
我已经写了Title.java文件,
下面是taglib.tld的内容
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>titleTag</shortname>
<info>
tag test
</info>
<tag>
<name>titleTag</name>
<tagclass>Title</tagclass>
<bodycontent>JSP</bodycontent>
<info>
Title Tag Test
</info>
</tag>
</taglib>