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?()
单项选择题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?()
单项选择题Given a portion of a valid Java EE web application’s directory structure: MyApp | |-- File1.html | |-- Directory1 ||-- File2.html| |-- META-INF |-- File3.html You want to know whether File1.html, File2.html, and or File3.html will be directly accessible by your webclient’s browsers. Which statement is true?()
A.All three files are directly accessible. B.Only File1.html is directly accessible. C.Only File2.html is directly accessible. D.Only File3.html is directly accessible. E.Only File1.html and File2.html are directly accessible.
单项选择题A developer is designing a multi-tier web application and discovers a need to hide the details of establishingand maintaining remote communications from the client. In addition, because the business and resourcetiers are distributed, the application needs to minimize the inter-tier network traffic related to servicing clientrequests. Which design patterns, working together, address these issues?()
A.Front Controller and Transfer Object B.Front Controller and Service Locator C.Business Delegate and Transfer Object D.Business Delegate and Intercepting Filter