uCosminexus Application Server, Web Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

6.3.5 Precautions related to the prefix attribute of the taglib directive

This subsection describes the precautions related to the prefix attribute of the taglib directive, differences in JSP compilation operations depending on the usage of the JSP translation backward compatibility function, and the definition of the JSP translation backward compatibility function.

Organization of this subsection
(1) Notes
(2) Differences in JSP compilation operations depending on the usage of the JSP translation backward compatibility function
(3) Defining the JSP translation backward compatibility function

(1) Notes

In the JSP specifications, you cannot use a custom tag that uses the prefix specified in the taglib directive before the taglib directive. The version 07-00 and later versions check whether the custom tag that uses the prefix specified in the taglib directive is coded before the taglib directive according to the JSP specifications. If the custom tag that uses the prefix specified in the taglib directive is coded before the taglib directive, an error occurs during translation. However, with versions prior to 07-00, this check is not performed, therefore, the coded custom tag is handled as a string.

Therefore, if the custom tag is coded using the prefix specified in the taglib directive before the taglib directive, the JSP compiled results are different with the versions prior to 07-00 and with version 07-00 and later versions.

If the custom tag that uses the prefix specified in the taglib directive is coded before the taglib directive, make sure that you set up the JSP translation backward compatibility function.

(2) Differences in JSP compilation operations depending on the usage of the JSP translation backward compatibility function

The differences in the compilation operations when the JSP translation backward compatibility function is used and when the function is not used with version 07-00 and later versions are as follows:

When the custom tag that uses the prefix specified in the taglib directive is coded before the taglib directive
  • Use the JSP translation backward compatibility function
    The custom tag is handled as a string and not as a custom tag.
  • Do not use the JSP translation backward compatibility function
    An error occurs during JSP translation.

(3) Defining the JSP translation backward compatibility function

To define the JSP translation backward compatibility function, specify the following parameter in the <configuration> tag of the logical J2EE server (j2ee-server) in the Easy Setup definition file:

webserver.jsp.translation.backcompat.useBean.noCheckClass
Specifies whether or not to execute the check process of the class attribute value of the <jsp:useBean> tag during JSP translation.

For details on the Easy Setup definition file and the parameters to be specified, see the uCosminexus Application Server Definition Reference Guide.