单项选择题
Click the Exhibit button.
A session-scoped attribute, product, is stored by a servlet. That servlet then forwards to a JSP page. Thisattribute holds an instance of the com.example.Product class with a name property of "The Matrix" andprice property of 39.95. Given the JSP page code snippet: 1. 2.
A.Default costs 0.0
B.Default costs 49.95
C.Default costs 39.95
D.The Matrix costs 0.0
E.The Matrix costs 49.95
点击查看答案
相关考题
-
多项选择题
Click the Exhibit button. Assume the product attribute does NOT yet exist in any scope. Which two create an instance of com.example.Product and initialize the name and price properties to the name and price request parameters?()
A.
B.
C.
D. -
单项选择题
Whichdefinesthewelcomefilesinawebapplicationdeploymentdescriptor?()
A.
B.
C.
D. -
单项选择题
Given this fragment from a Java EE deployment descriptor: 341.<error-page> 342.<exception-type>java.lang.Throwable</exception-type> 343.<location>/mainError.jsp</location> 344.</error-page> 345.<error-page> 346.<exception-type>java.lang.ClassCastException</exception-type> 347.<location>/castError.jsp</location> 348.</error-page> If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()
A.The deployment descriptor is invalid.
B.The container invokes mainError.jsp.
C.The container invokes castError.jsp.
D.Neither mainError.jsp nor castError.jsp is invoked.
