uCosminexus Application Server, Web Container Functionality Guide

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

6.3.4 Precautions related to Expression specified in the tag attribute values

This subsection describes the precautions related to Expression specified in 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

When specifying the Expression in the attribute value of the tag, specify as "<%= scriptlet_expr %>" or '<%= scriptlet_expr %>'.

If the tag attribute value starts with "<%= (or '<%=) and does not end with %>" (or %>'), the value enclosed within " (or ') is handled as a string with versions prior to the 07-00 version. For example, if an optional string exists between %> and ", the value enclosed within " is handled as a string. However, with version 07-00 and later versions, %>" (or %>') is handled as the end of the attribute value, therefore, an error occurs during JSP translation.

If the tag attribute value starts with "<%= (or '<%=) and does not end with %>" (or %>'), 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 described below:

When the tag attribute value starts with "<%= (or '<%=) and does not end with %>" (or %>')
  • Use the JSP translation backward compatibility function
    The attribute value enclosed within " (or ') is processed as a string.
  • Do not use the JSP translation backward compatibility function
    The attribute value enclosed within " (or '), is processed as an Expression.

(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.rtexprvalueTerminate
Specifies whether or not to handle as a string the value enclosed within " (or ') of the attribute value in which the tag attribute value starts with "<%= or '<%= and does not end with %>" (%>' when started with '<%).

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