B
Bruce
Our Websphere server was upgraded to 5.1.3 and we are now using JDK
1.4 and JSP 2. Our taglibraries have stopped working.
I am tryin to upgrade the libraries to use the SimpleTagSupport
classes, etc but am having a problem with our tld descriptor
Is this the proper way to declare the V2.0 of the taglibrary?
The error I am getting is:
Error JspTranslate: : XML parsing error on file /WEB-INF/tagLib.tld:
(line 3, col 117): Document root element "taglib", must match DOCTYPE
root "null".. e_accountSignup.jsp ZSERIES_HCCFIA/WebContent line 8
Any ideas??
<?xml version="1.0" encoding="UTF-8"?>
<taglib
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<tlib-version>1.0</tlib-version>
<short-name>HCCFIA Tag Library</short-name>
<tag>
<name>isElements</name>
<tag-class>taglib.IsElementsHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
</tag>
<tag>
<name>getMessage</name>
<tag-class>taglib.getMessageHandler</tag-class>
<body-content>empty</body-content>
</tag>
<tag>
<name>getReqParam</name>
<tag-class>taglib.getReqParamHandler</tag-class>
<body-content>empty</body-content>
<attribute>
<name>name</name>
<required>true</required>
</attribute>
</tag>
<tag>
<name>getParam</name>
<tag-class>taglib.getParamHandler</tag-class>
<body-content>empty</body-content>
<attribute>
<name>field</name>
<required>true</required>
</attribute>
<attribute>
<name>object</name>
<required>true</required>
</attribute>
</tag>
<tag>
<name>initializeList</name>
<tag-class>taglib.InitializeListHandler</tag-class>
<body-content>empty</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
</attribute>
</tag>
<tag>
<name>isChecked</name>
<tag-class>taglib.IsCheckedHandler</tag-class>
<body-content>empty</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
</attribute>
</tag>
<tag>
<name>isSelected</name>
<tag-class>taglib.IsSelectedHandler</tag-class>
<body-content>empty</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
</attribute>
</tag>
<tag>
<name>iterateOverObjects</name>
<tag-class>taglib.IterateOverObjectsHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
<attribute>
<name>splitList</name>
<required>false</required>
</attribute>
</tag>
<tag>
<name>getObjectMessage</name>
<tag-class>taglib.getObjectMessageHandler</tag-class>
<body-content>empty</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
<attribute>
<name>fieldName</name>
<required>true</required>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
</attribute>
</tag>
<tag>
<name>isNew</name>
<tag-class>taglib.IsNewHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>doctype</name>
<required>true</required>
</attribute>
</tag>
<tag>
<name>alternateColors</name>
<tag-class>taglib.alternateColorsHandler</tag-class>
<body-content>empty</body-content>
</tag>
<tag>
<name>isLoggedIn</name>
<tag-class>taglib.IsLoggedInHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>currentPage</name>
<required>true</required>
</attribute>
<attribute>
<name>checkStatus</name>
<required>false</required>
</attribute>
</tag>
<tag>
<name>isRoleEnabled</name>
<tag-class>taglib.IsRoleEnabledHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>roleName</name>
<required>true</required>
</attribute></tag>
<tag>
<name>HideSearchArrow</name>
<tag-class>taglib.HideSearchArrowHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>arrowType</name>
<required>true</required>
</attribute>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
</tag>
<tag>
<name>getSpecial</name>
<tag-class>taglib.getSpecialHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
<attribute>
<name>fieldName</name>
<required>true</required>
</attribute>
</tag>
</taglib>
1.4 and JSP 2. Our taglibraries have stopped working.
I am tryin to upgrade the libraries to use the SimpleTagSupport
classes, etc but am having a problem with our tld descriptor
Is this the proper way to declare the V2.0 of the taglibrary?
The error I am getting is:
Error JspTranslate: : XML parsing error on file /WEB-INF/tagLib.tld:
(line 3, col 117): Document root element "taglib", must match DOCTYPE
root "null".. e_accountSignup.jsp ZSERIES_HCCFIA/WebContent line 8
Any ideas??
<?xml version="1.0" encoding="UTF-8"?>
<taglib
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<tlib-version>1.0</tlib-version>
<short-name>HCCFIA Tag Library</short-name>
<tag>
<name>isElements</name>
<tag-class>taglib.IsElementsHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
</tag>
<tag>
<name>getMessage</name>
<tag-class>taglib.getMessageHandler</tag-class>
<body-content>empty</body-content>
</tag>
<tag>
<name>getReqParam</name>
<tag-class>taglib.getReqParamHandler</tag-class>
<body-content>empty</body-content>
<attribute>
<name>name</name>
<required>true</required>
</attribute>
</tag>
<tag>
<name>getParam</name>
<tag-class>taglib.getParamHandler</tag-class>
<body-content>empty</body-content>
<attribute>
<name>field</name>
<required>true</required>
</attribute>
<attribute>
<name>object</name>
<required>true</required>
</attribute>
</tag>
<tag>
<name>initializeList</name>
<tag-class>taglib.InitializeListHandler</tag-class>
<body-content>empty</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
</attribute>
</tag>
<tag>
<name>isChecked</name>
<tag-class>taglib.IsCheckedHandler</tag-class>
<body-content>empty</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
</attribute>
</tag>
<tag>
<name>isSelected</name>
<tag-class>taglib.IsSelectedHandler</tag-class>
<body-content>empty</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
</attribute>
</tag>
<tag>
<name>iterateOverObjects</name>
<tag-class>taglib.IterateOverObjectsHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
<attribute>
<name>splitList</name>
<required>false</required>
</attribute>
</tag>
<tag>
<name>getObjectMessage</name>
<tag-class>taglib.getObjectMessageHandler</tag-class>
<body-content>empty</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
<attribute>
<name>fieldName</name>
<required>true</required>
</attribute>
<attribute>
<name>type</name>
<required>false</required>
</attribute>
</tag>
<tag>
<name>isNew</name>
<tag-class>taglib.IsNewHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>doctype</name>
<required>true</required>
</attribute>
</tag>
<tag>
<name>alternateColors</name>
<tag-class>taglib.alternateColorsHandler</tag-class>
<body-content>empty</body-content>
</tag>
<tag>
<name>isLoggedIn</name>
<tag-class>taglib.IsLoggedInHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>currentPage</name>
<required>true</required>
</attribute>
<attribute>
<name>checkStatus</name>
<required>false</required>
</attribute>
</tag>
<tag>
<name>isRoleEnabled</name>
<tag-class>taglib.IsRoleEnabledHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>roleName</name>
<required>true</required>
</attribute></tag>
<tag>
<name>HideSearchArrow</name>
<tag-class>taglib.HideSearchArrowHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>arrowType</name>
<required>true</required>
</attribute>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
</tag>
<tag>
<name>getSpecial</name>
<tag-class>taglib.getSpecialHandler</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>listName</name>
<required>true</required>
</attribute>
<attribute>
<name>fieldName</name>
<required>true</required>
</attribute>
</tag>
</taglib>