多项选择题
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. -
单项选择题
You have created a servlet that generates weather maps. The data for these maps is calculated by aremote host. The IP address of this host is usually stable, but occasionally does have to change as thecorporate network grows and changes. This IP address used to be hard coded, but after the fifth change tothe IP address in two years, you have decided that this value should be declared in the deploymentdescriptor so you do NOT have the recompile the web application every time the IP address changes. Which deployment descriptor snippet accomplishes this goal?()
A.
B.
C.
D.
