READ Free Dumps For Oracle- 1z0-899
Question ID 4631 | You have a simple wpb application that has a single Front Controller servlet that dispatches to JSPs generate a variety of views. Several of these views require further database processing to retrieve the necessary order object using the orderID request parameter. To do this additional processing, you pass the request first to a servlet that is mapped to the URL pattern /WEB – INF / retrieveOrder.do. in the deployment descriptor. This servlet takes two request parameters, the ordered and the jspID and the jspURL. It handles the database calls to retrieve and build the complex order objects and then it dispatches to the jspURL. |
Option A | A. reques.setAttribute (“orderID”, orderIS); |
Option B | B. reques.setAttribute (“orderID”, orderIS); request.setAttribute(“jspURL”, jspURL); Dispatcher view |
Option C | C. String T= “/WEB – INF / retrieveOrder.do?orderID = %d&jspURl = %s”; String url = String.format (T, ordered, jspURL); |
Option D | D. String T= “/WEB – INF / retrieveOrder.do?orderID = %d&jspURl = %s”; String url = String.format (T, ordered, jspURL); |
Correct Answer | C |
Question ID 4632 | In ServletContext.getNamedDispatcher(string arg0) arg0 is the |
Option A | A. url of a servlet relative to the ServletRequest |
Option B | B. url of a servlet relative to the Context |
Option C | C. name of a servlet |
Option D | D. absolute url to any servlet in any Context |
Correct Answer | C |