-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major
-
Affects Version/s: 1.1
-
Component/s: Java EE Integration Specification
-
None
Target: SCA Java EE Specification - sca-jee-1[1].1-spec-wd03.doc
Description: Lines 745 - 780 of the spec define the SCA taglib for JSPs. This definition is incorrect as it does not conform to the
definition of the XSD for JSP taglibs.
What is incorrect is that the <attribute/> elements for both "name" and "type" attributes are both missing a required
<rtexprvalue/> child element, so that the taglib fails to validate against the taglib XSD ("http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd")
Proposal: Modify the taglib definition to include the <rtexprvalue/> elements as follows:
<?xml version = '1.0' encoding = 'ISO-8859-1'?>
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd">
<taglib version="2.1">
<tlib-version>1.0</tlib-version>
<short-name>SCA-JSP</short-name>
<uri>http://www.osoa.org/sca/sca_jsp.tld</uri>
<description>A tag library for integrating sca components with jsp
</description>
<tag>
<name>reference</name>
<tag-class><!—To be provided by the SCA runtime implementation--></tag-class>
<tei-class><!—To be provided by the SCA runtime implementation--></tei-class>
<attribute>
<name>name</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<type>java.lang.String</type>
</attribute>
<attribute>
<name>type</name>
<required>true</required>
<rtexprvalue>false</rtexprvalue>
<type>java.lang.String</type>
</attribute>
<body-content>empty</body-content>
</tag>
</taglib>