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

题目内容 (请给出正确答案)
单选题
Given an Http Session session. A Servlet Request request. And a Servlet Context context. Which retrieves a URL to /WEB INF/ my config.xml within a web application?()
A

 session.get Resource (“/WEB-INF/myconfig.xml”)

B

 request.get Resource (“/WEB-INF/myconfig.xml”)

C

 context.get Resource (“/WEB-INF/myconfig.xml”)

D

 get Class ().get Resource (“/WEB-INF/myconfig.xml”)


参考答案

参考解析
解析: 暂无解析
更多 “单选题Given an Http Session session. A Servlet Request request. And a Servlet Context context. Which retrieves a URL to /WEB INF/ my config.xml within a web application?()A  session.get Resource (“/WEB-INF/myconfig.xml”)B  request.get Resource (“/WEB-INF/myconfig.xml”)C  context.get Resource (“/WEB-INF/myconfig.xml”)D  get Class ().get Resource (“/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”)

考题 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)

考题 一个servlet的类文件必须发布在虚拟目录里的什么文件夹下?()。A、ROOTB、WEB-INF/libC、WEB-INF/classesD、WEB-INF/

考题 Given an Http Session session. A Servlet Request request. And a Servlet Context context. Which retrieves a URL to /WEB INF/ my config.xml within a web application?()A、 session.get Resource (“/WEB-INF/myconfig.xml”)B、 request.get Resource (“/WEB-INF/myconfig.xml”)C、 context.get Resource (“/WEB-INF/myconfig.xml”)D、 get Class ().get Resource (“/WEB-INF/myconfig.xml”)

考题 Which two actions protect a resource file from direct HTTP access within a web application?()A、Placing it in the /secure directoryB、Placing it in the /WEB-INF directoryC、Placing it in the /META-INF/secure directoryD、Creating a  element within the deployment descriptor

考题 Which three are described in the standard web application deployment descriptor?()A、session configurationB、MIME type mappingsC、context root for the applicationD、servlet instance pool configurationE、web container default port bindingsF、Servlet Context initialization parameters

考题 在web.xml文件中,描述了一个Servlet,其中()指定了Servlet类的访问路径。A、 servlet中的servlet-name B、url-pattrrn C、 WEB-INF文件夹servlet-class   D、 servlet-mapping中的servlet-name

考题 现在我们为MyWebApp开发了一些Servlet,应该将这些Servlet发布于()文件夹中。A、/(根目录)B、/WEB-INF/C、/WEB-INF/classesD、/WEB-INF/lib

考题 Which path is required to be present within a WAR file?()A、/classesB、/index.htmlC、/MANIFEST-INFD、/WEB-INF/web.xmlE、/WEB-INF/classes

考题 Which path, relative to a web application’s root, identifies the web application’s deployment descriptor?()A、 /conf/web.xmlB、 /WEB-INF/web.xmlC、 /conf/server.xmlD、 /META-INF/web.xmlE、 /WEB-INF/rules.xmlF、 /META-INF/server. Xml

考题 Given an HttpSession session,a ServletRequest request,and a ServletContext context,which retrieves aURL to /WEB-INF/myconfig.xml within a web application?()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")

考题 In which three directories, relative to a web application’s root, may a tag library descriptor file reside when deployed directly into a web application?()A、 /WEB-INFB、 /META-INFC、 /WEB-INF/tldsD、 /META-INF/tldsE、 WEB-INF/resourcesF、 /META-INF/resources

考题 In which two web application directories can dependent classes and libraries be located? ()A、 /WEB-INF/lib as a JAR fileB、 /META-INF/lib as a JAR fileC、 /classes as compiled class filesD、 /WEB-INF/lib as compiled class filesE、 /WEB-INF/classes as compiled class filesF、 /META-INF/classes as compiled class files

考题 Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A’s web application.  In which object can the data that A shares with B be stored?()A、 HttpSessionB、 ServletConfigC、 ServletContextD、 HttpServletRequestE、 HttpServletResponse

考题 Which path is required to be present within a WAR file?()  A、 /classesB、 /index.htmlC、 /MANIFEST-INFD、 /WEB-INF/web.xmlE、 /WEB-INF/classesF、 /WEB-INF/index.htmlG、 /META-INF/index.xml

考题 A web application is bound to the context named "/webapp" and the client uses the browser and  makes a request to the resource http://server:port/webapp/ctxl/resource.    Where do you place this resource inside the web application structure?()A、in the subdirectory /WEB-INF/ctxlB、in the subdirectory /META-INF/ctxlC、in the subdirectory /ctxl in the root of the archiveD、in the subdirectory /ctxl/resource in the root of the archiveE、in the root of the archive

考题 单选题Which path, relative to a web application’s root, identifies the web application’s deployment descriptor?()A  /conf/web.xmlB  /WEB-INF/web.xmlC  /conf/server.xmlD  /META-INF/web.xmlE  /WEB-INF/rules.xmlF  /META-INF/server. Xml

考题 单选题Given an HttpSession session,a ServletRequest request,and a ServletContext context,which retrieves aURL to /WEB-INF/myconfig.xml within a web application?()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)

考题 单选题在Web应用程序中web.xml配置了Servlet的信息,如果你的项目为LoginDemo,那么web.xml最可能位于哪个目录下?()A LoginDemo/B LoginDemo/src/C LoginDemo/logindemo/WEB-INF/bin/D LoginDemo/logindemo/WEB-INF/

考题 单选题现在我们为MyWebApp开发了一些Servlet,应该将这些Servlet发布于()文件夹中。A /(根目录)B /WEB-INF/C /WEB-INF/classesD /WEB-INF/lib

考题 单选题A web application is bound to the context named "/webapp" and the client uses the browser and  makes a request to the resource http://server:port/webapp/ctxl/resource.    Where do you place this resource inside the web application structure?()A in the subdirectory /WEB-INF/ctxlB in the subdirectory /META-INF/ctxlC in the subdirectory /ctxl in the root of the archiveD in the subdirectory /ctxl/resource in the root of the archiveE in the root of the archive

考题 单选题Servlet A receives a request that it forwards to servlet B within another web application in the same webcontainer. Servlet A needs to share data with servlet B and that data must not be visible to other servlets inA’s web application. In which object can the data that A shares with B be stored?()A HttpSessionB ServletConfigC ServletContextD HttpServletRequestE HttpServletResponse

考题 单选题Which path is required to be present within a WAR file?()A  /classesB  /index.htmlC  /MANIFEST-INFD  /WEB-INF/web.xmlE  /WEB-INF/classesF  /WEB-INF/index.htmlG  /META-INF/index.xml

考题 单选题Servlet A receives a request that it forwards to servlet B within another web application in the same web container. Servlet A needs to share data with servlet B and that data must not be visible to other servlets in A’s web application.  In which object can the data that A shares with B be stored?()A  HttpSessionB  ServletConfigC  ServletContextD  HttpServletRequestE  HttpServletResponse

考题 单选题Which retrieves the binary input stream on line 13?()A  request.get Writer ():B  request.get Reader ():C  request.get Input Stream():D  request.get Resource As Stream():E  request.get Resource As Stream (Servlet Request. REQUEST):

考题 多选题In which three directories, relative to a web application’s root, may a tag library descriptor file reside whendeployed directly into a web application?()A/WEB-INFB/META-INFC/WEB-INF/tldsD/META-INF/tldsE/WEB-INF/resourcesF/META-INF/resources

考题 单选题Which path is required to be present within a WAR file?()A /classesB /index.htmlC /MANIFEST-INFD /WEB-INF/web.xmlE /WEB-INF/classes