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/myconf

题目

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 ”相关问题
  • 第1题:

    Given:3.classMyServletextendsHttpServlet{4.publicvoiddoPut(HttpServletRequestreq,HttpServletResponseresp)throwsServletException,IOException{5.//servletcodehere...26.}27.}IftheDDcontainsasinglesecurityconstraintassociatedwithMyServletanditsonly<httpmethod>tagsand<auth-constraint>tagsare:<http-method>GET</http-method><http-method>PUT</http-method><auth-constraint>Admin</auth-constraint>Whichfourrequestswouldbeallowedbythecontainer?()

    A.AuserwhoseroleisAdmincanperformaPUT.

    B.AuserwhoseroleisAdmincanperformaGET.

    C.AuserwhoseroleisAdmincanperformaPOST.

    D.AuserwhoseroleisMembercanperformaPUT.

    E.AuserwhoseroleisMembercanperformaPOST.

    F.AuserwhoseroleisMembercanperformaGET.


    参考答案:A, B, C, E

  • 第2题:

    美国FDA网站是

    A.Http://www.sfda.gov.cn

    B.Http://www.who.ch

    C.Http://www.cpi.gov.cn

    D.Http://www.fda.gov

    E.Http://www.moh.gov.cn


    参考答案:D

  • 第3题:

    以下哪些接口能够实现对Web访问者的身份认证?()

    • A、Http Servlet Request
    • B、Http Servlet Response
    • C、Http Session
    • D、Http Servlet

    正确答案:C

  • 第4题:

    Which two classes or interfaces provide a getSession method?()

    • A、 javax.servlet.http.HttpServletRequest
    • B、 javax.servlet.http.HttpSessionContext
    • C、 javax.servlet.http.HttpsServletResponse
    • D、 javax.servlet.http.HttpSessionBindingEvent
    • E、 javax.servlet.http.HttpSessionAttributeEvent

    正确答案:A,D

  • 第5题:

    以下哪个http响应包表示GET请求成功?()

    • A、HTTP1/1200OK
    • B、HTTP1/1404OK
    • C、HTTP1/1302OK
    • D、HTTP1/1501OK

    正确答案:A

  • 第6题:

    下列HTTP错误代码描述正确的是()。

    • A、HTTP502-网关错误
    • B、HTTP403-禁止访问
    • C、HTTP404-无法找到文件
    • D、HTTP500-请求无效
    • E、HTTP800-请求无效

    正确答案:A,B,C,D

  • 第7题:

    Web关键技术包括()。

    • A、HTML、URL、HTTP
    • B、HTTP、FTP、SMTP
    • C、WWW、HTTP、HTML
    • D、HTTP、HTML、XML

    正确答案:A

  • 第8题:

    HTTP协议目前有三个版本()

    • A、http/1.2
    • B、http/1.0
    • C、http/0.9
    • D、http/1.1

    正确答案:B,C,D

  • 第9题:

    下列哪项是was的地址()。

    • A、http://192.168.1.31:8080/assistant/
    • B、http://192.168.1.31:8080/assistants/
    • C、http://192.168.1.31:8181/assistant/
    • D、http://192.168.1.31:8181/assistants/

    正确答案:A

  • 第10题:

    扬州宽带网站论坛域名是().

    • A、http://bbs.game163.net
    • B、http://bbs.yzvoD.net
    • C、http://bbs.yzvoD.com
    • D、http://bbs.game163.com

    正确答案:C

  • 第11题:

    美国白宫的主页是()。

    • A、http://www.nation.gov
    • B、http://www.whitehousE.gov
    • C、http://whitehousE.gov.am
    • D、http://www.whitehousE.am

    正确答案:B

  • 第12题:

    多选题
    Which two classes or interfaces provide a getSession method?()
    A

    javax.servlet.http.HttpServletRequest

    B

    javax.servlet.http.HttpSessionContext

    C

    javax.servlet.http.HttpsServletResponse

    D

    javax.servlet.http.HttpSessionBindingEvent

    E

    javax.servlet.http.HttpSessionAttributeEvent


    正确答案: E,B
    解析: 暂无解析

  • 第13题:

    中国医药信息中心网站是

    A.Http://www.sfda.gov.cn

    B.Http://www.who.ch

    C.Http://www.cpi.gov.cn

    D.Http://www.fda.gov

    E.Http://www.moh.gov.cn


    参考答案:C

  • 第14题:

    Click the Exhibit button.Assume the default-policy has not been configured.Given the configuration shown in the exhibit, which two statements about traffic from host_a in the HR zone to host_b in the trust zone are true? ()(Choose two.)

    A. DNS traffic is denied.

    B. HTTP traffic is denied.

    C. FTP traffic is permitted.

    D. SMTP traffic is permitted.


    参考答案:A, C

  • 第15题:

    光明网网址()。

    • A、http://www.moE.EDu.C.n/
    • B、http://www.stAtsgov.Cn/
    • C、http://www.DrCnEtCom.Cn/
    • D、http://www.gmw.Cn/
    • E、E.http://www.xinhunEt.Com/

    正确答案:D

  • 第16题:

    Assume the default-policy has not been configured.Given the configuration shown in the exhibit, which two statements about traffic from host_a inthe HR zone to host_b in the trust zone are true?() [edit security policies from-zone HR to-zone trust] user@host# show policy one { match { source-address any; destination-address any; application [ junos-http junos-ftp ]; } then { permit; } } policy two { match { source-address host_a; destination-address host_b; application [ junos-http junos-smtp ]; } then { deny; } }

    • A、DNS traffic is denied.
    • B、HTTP traffic is denied.
    • C、FTP traffic is permitted.
    • D、SMTP traffic is permitted.

    正确答案:A,C

  • 第17题:

    维普考试资源系统的网址是?()

    • A、http://vers.cqvip.com
    • B、http://lib.cqvip.com
    • C、http://www.cqvip.com
    • D、http://zlf.cqvip.com

    正确答案:A

  • 第18题:

    使用内网和外网登陆云桌面的地址分别为()

    • A、http://vdesk.clic;http://vdesk.e-chinalife.com
    • B、http://vdesk.e-chinalife.com;http://vdesk.clic
    • C、http://itsm.clic/;http://vdesk.e-chinalife.com
    • D、http://itsm.clic/;http://vdesk.clic

    正确答案:A

  • 第19题:

    迈捷服务器地址是多少()

    • A、http://143.16.16.62
    • B、http://143.16.16.26
    • C、http://143.16.16.8
    • D、http://143.16.16.112

    正确答案:A

  • 第20题:

    集成指挥系统的登陆地址是:()

    • A、http://10.160.118.216/TPGIS
    • B、http://10.160.118.1/trffweb
    • C、http://10.160.118.1/trffres
    • D、http://10.160.118.45:9080/jtglzc

    正确答案:A

  • 第21题:

    下列Internet网址格式正确的是()。

    • A、http://www.126.com
    • B、http:www.126.com
    • C、http://www.126
    • D、http://www.126.com

    正确答案:A

  • 第22题:

    Given that www.example.com/SCWCDtestApp is a validly deployed Java EE web application and that all ofthe JSP files specified in the requests below exist in the locations specified. Which two requests,issuedfrom a browser,will return an HTTP 404 error?()

    • A、http://www.example.com/SCWCDtestApp/test.jsp
    • B、http://www.example.com/SCWCDtestApp/WEB-INF/test.jsp
    • C、http://www.example.com/SCWCDtestApp/WEB-WAR/test.jsp
    • D、http://www.example.com/SCWCDtestApp/Customer/test.jsp
    • E、http://www.example.com/SCWCDtestApp/META-INF/test.jsp
    • F、http://www.example.com/SCWCDtestApp/Customer/Update/test.jsp

    正确答案:B,E

  • 第23题:

    多选题
    Given a header in an HTTP request: X-Retries:4  Which two retrieve the value of the header from a given ServletRequest request? ()
    A

    request.getHeader (“X-Retries”)

    B

    request.getIntHeader (“X-Retries”)

    C

    request.getRequestHeader (“x-Retries”)

    D

    request.getHeaders (“X-Retries”).get (0)

    E

    re request.getRequest Headers (“X-Retries”). Get (0)


    正确答案: A,B
    解析: 暂无解析

  • 第24题:

    多选题
    Given a header in an HTTP request:X-Retries:4 Which two retrieve the value of the header from a given HttpServletRequest request?()
    A

    Request.getHeader(X-Retries)

    B

    Request.getIntHeader(X-Retries)

    C

    Request.getRequestHeader(X-Retries)

    D

    Request.getHeaders(X-Retries).get(0)

    E

    Request.getRequestHeaders(X-Retries).get(0)


    正确答案: A,E
    解析: 暂无解析