单选题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)
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?()Asession.getResource(/WEB-INF/myconfig.xml)Brequest.getResource(/WEB-INF/myconfig.xml)Ccontext.getResource(/WEB-INF/myconfig.xml)DgetClass().getResource(/WEB-INF/myconfig.xml)
单选题在Web应用程序中web.xml配置了Servlet的信息,如果你的项目为LoginDemo,那么web.xml最可能位于哪个目录下?()ALoginDemo/BLoginDemo/src/CLoginDemo/logindemo/WEB-INF/bin/DLoginDemo/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?()Ain the subdirectory /WEB-INF/ctxlBin the subdirectory /META-INF/ctxlCin the subdirectory /ctxl in the root of the archiveDin the subdirectory /ctxl/resource in the root of the archiveEin 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?()AHttpSessionBServletConfigCServletContextDHttpServletRequestEHttpServletResponse
单选题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
单选题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”)
单选题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