uCosminexus Application Server, Web Container Functionality Guide

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

6.3.3 Precautions related to the Expression check of the tag attribute values

This subsection describes the precautions related to the Expression check of the tag attribute values, 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, the tag attributes specified in the Expression have been limited. With the version 07-00 and later versions, if Expression is specified in the attributes other than the attributes that can specify Expression without using the JSP translation backward compatibility function, an error will occur during the JSP translation. However, the versions prior to 07-00 do not check whether the Expression can be specified during the JSP translation. As a result, <%= and %> indicating Expression are recognized as strings and an error does not occur. Therefore, if Expression is specified in attributes other than the attributes that can specify the Expression, the JSP compiled results are different with the version 07-00 and its prior and later versions.

When using JSP that specifies Expression in the attributes other than the attributes that can specify Expression, 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 following are 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:

When Expression is specified in the attribute value of the tag that does not permit the specification of the Expression
  • Use the JSP translation backward compatibility function
    The Expression specified in the attribute value of the tag that does not permit the specification of the Expression is handled as a string.
  • 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.tag.noCheckRtexprvalue
Specifies whether or not to determine if the Expression is specified in the attribute value of the tag that cannot specify the Expression.

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