网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
GivenanHttpSessionsession.AServletRequestrequest.AndaServletContextcontext.WhichretrievesaURLto/WEBINF/myconfig.xmlwithinawebapplication?()

A.session.getResource(“/WEB-INF/myconfig.xml”)

B.request.getResource(“/WEB-INF/myconfig.xml”)

C.context.getResource(“/WEB-INF/myconfig.xml”)

D.getClass().getResource(“/WEB-INF/myconfig.xml”)


参考答案

更多 “ GivenanHttpSessionsession.AServletRequestrequest.AndaServletContextcontext.WhichretrievesaURLto/WEBINF/myconfig.xmlwithinawebapplication?() A.session.getResource(“/WEB-INF/myconfig.xml”)B.request.getResource(“/WEB-INF/myconfig.xml”)C.context.getResource(“/WEB-INF/myconfig.xml”)D.getClass().getResource(“/WEB-INF/myconfig.xml”) ” 相关考题
考题 YouhaveasimplewebapplicationthathasasingleFrontControllerservletthatdispatchestoJSPstogenerateavarietyofviews.Severaloftheseviewsrequirefurtherdatabaseprocessingtoretrievethe necessaryorderobjectusingtheorderIDrequestparameter.Todothisadditionalprocessing,youpasstherequestfirsttoaservletthatismappedtotheURLpattern/WEBINF/retreiveOrder.dointhedeploymentdescriptor.Thisservlettakestworequestparameters,theorderIDandthejspURL.IthandlesthedatabasecallstoretrieveandbuildthecomplexorderobjectsandthenitdispatchestothejspURL.WhichcodesnippetintheFrontControllerservletdispatchestherequesttotheorderretrievalservlet?()

考题 GivenanHttpSessionsession,aServletRequestrequest,andaServletContextcontext,whichretrievesaURLto/WEB-INF/myconfig.xmlwithinawebapplication?() A.session.getResource(/WEB-INF/myconfig.xml)B.request.getResource(/WEB-INF/myconfig.xml)C.context.getResource(/WEB-INF/myconfig.xml)D.getClass().getResource(/WEB-INF/myconfig.xml)