on ‎2004 May 14 10:43 AM
Hi,
I have make some tests with developping jsp with EP6
this is my little jsp :
<%@taglib uri="tagLib" prefix="hbj"%>
<hbj:content id="myContext">
<hbj:page title="HelloWorld">
<hbj:form>
<hbj:textView id ="welcome">
<center><h1><br>Hello World </br></h1></center>
</hbj:textView>
</hbj:form>
</hbj:page>
</hbj:content>
the following error appears :
Error in parsing taglib 'tagLib' tag in web.xml or .tld file of the taglib library..
must I modufy the web.xml file?
Regars
Request clarification before answering.
In file web.xml you must have:
<taglib>
<taglib-uri>
tagLib
</taglib-uri>
<taglib-location>
/WEB-INF/tlds/your_taglib.tld
</taglib-location>
</taglib>
Then you could call the config "your_taglib.tld" file typing <%@taglib uri="tagLib" prefix="hbj" %>
And in your "your_taglib.tld" file:
<?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>Your Examples</shortname>
<tag>
<name>content</name>
<tagclass>folder.TagClass</tagclass>
<bodycontent>empty or whatever</bodycontent>
<attribute>
<name>id</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<!-- (...) others tags -->
</taglib>
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Antonio,
If I understand, I must copy this :
<taglib>
<taglib-uri>
tagLib
</taglib-uri>
<taglib-location>
/WEB-INF/tlds/your_taglib.tld
</taglib-location>
</taglib>
in my web.xml, wich is located in the WEB-INF directory,
but I don't know what is the "my_taglib.tld" is it located on the server, if that, in witch directory, or in the PAR file?
Regards
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.