Jsp 2.0 taglib conversion

From: Bruce (googleposter_at_email.com)
Date: 06/30/04


Date: 30 Jun 2004 06:12:41 -0700

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>



Relevant Pages

  • Re: 6.1-BETA 4 stable for normal use?
    ... So in particular if you're new to FreeBSD, ... It is fairly easy to upgrade, see the handbook, in fact I had a system that I had continuously upgraded from a 5.2.1 installation in march 2004 to the 6.1-PRERELEASE. ... If you later want to upgrade to 6.1 then you just change the tag to RELENG_6_1 and if you want to move with the head of the 6_STABLE branch then use tag RELENG_6. ...
    (freebsd-questions)
  • Re: Trigger Update of ActiveX Control in Javascript?
    ... AFAIK the tag doesn't give us enough control. ... This is why we want to _trigger_ the upgrade in javascript. ...
    (microsoft.public.scripting.jscript)
  • Re: FreeBSD 7.0-BETA3 Available
    ... would like to use cvsup to update an older machine the release tag is ... it isn't yet possible to upgrade to 7.0-BETA3 ... I am using ZFS on root which doesn't support file flags so it ...
    (freebsd-current)
  • Re: FreeBSD 7.0-BETA3 Available
    ... would like to use cvsup to update an older machine the release tag is ... it isn't yet possible to upgrade to 7.0-BETA3 ... I am using ZFS on root which doesn't support file flags so it ...
    (freebsd-stable)
  • Re: Trigger Update of ActiveX Control in Javascript?
    ... AFAIK the tag doesn't give us enough control. ... This is why we want to _trigger_ the upgrade in javascript. ... Users of the download version will be offered optional updates. ...
    (microsoft.public.scripting.jscript)