uCosminexus Application Server, Web Container Functionality Guide
This subsection describes the precautions related to the class attributes of the <jsp:useBean> tag, 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.
In the <jsp:useBean> tag, JSP specifications define that class attribute is the implementation class name of the object. Complying with these specifications, the following checks are implemented during the JSP translation for the classes specified in the class attribute, with the version 07-00 and later versions:
Therefore, when a class that does not meet these check items is specified in the class attribute, the JSP compilation results are different with the versions prior to 07-00 and with version 07-00 and later versions.
The following is an example of JSP wherein the implementation class is specified in the include source and an interface is specified in the include destination:
<jsp:useBean id="bean" scope="request" class="test.TestBean"/> <jsp:include page="test1_included.jsp"/> |
<jsp:useBean id="bean" scope="request" class="test.TestBeanIF"/> |
The operations for each Application Server version in this example are as follows:
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:
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:
For details on the Easy Setup definition file and the parameters to be specified, see the uCosminexus Application Server Definition Reference Guide.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.