SCWCD(310-083)

单选题Given this fragment from a Java EE deployment descriptor: 124. beta.html 125. alpha.html And this request from a browser:http://www.sun.com/SCWCDtestApp/register Which statement is correct,when the container receives this request?()A This deployment de

题目
单选题
Given this fragment from a Java EE deployment descriptor: 124. beta.html 125. alpha.html And this request from a browser:http://www.sun.com/SCWCDtestApp/register Which statement is correct,when the container receives this request?()
A

This deployment descriptor is NOT valid.

B

The container first looks in the register directory for beta.html.

C

The container first looks in the register directory for alpha.html.

D

The container first looks for a servlet mapping in the deployment descriptor.

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which two pieces of information are needed when declaring the web resource collection in the deployment descriptor?()

  • A、 the URL pattern that requires authorization
  • B、 the HTTP methods that require authorization
  • C、 the users allowed access to the web resource
  • D、 the J2EE roles allowed access to the web resource
  • E、 the authentication mechanism required by the web resource

正确答案:A,B

第2题:

Which two actions protect a resource file from direct HTTP access within a web application?()

  • A、Placing it in the /secure directory
  • B、Placing it in the /WEB-INF directory
  • C、Placing it in the /META-INF/secure directory
  • D、Creating a  element within the deployment descriptor

正确答案:B,C

第3题:

The Hypertext Transfer Protocol , the Web's ( ) protocol , is at the heart of the Web. HTTP is implemented in two programs : a ( ) program and a server program . The client program and server program executing on different end systems , talk to each other by ( ) HTTP messages . HTTP defines how Web clients request Web pages from servers and how servers transfer web pages to clients . when a user ( ) a web page , the browser sends http request messages for the objects in the page to the server . The server (请作答此空) the requests and responds with http response messages that contain the objects .

A.declines
B.deletes
C.edits
D.receives

答案:D
解析:
Web的应用层协议是超文本传输协议,是web核心。HTTP在两类程序(客户端程序、服务器端程序)中执行。客户端程序、服务器端程序在不同的终端系统中执行,通过交换HTTP消息来进行交互。HTTP定义了Web客户端如何从服务器端请求Web页面以及服务器端如何传送Web页面到服务器。当用户请求一个web页面,浏览器发送页面对象的http请求给服务器。服务器接收请求并用包含对象的http消息进行响应。

第4题:

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,B

第5题:

Which two statements are true about the security-related tags in a valid Java EE deployment descriptor?()

  • A、Every  tag must have at least one  tag.
  • B、A  tag can have many  tags.
  • C、A given  tag can apply to only one  tag.
  • D、A given  tag can contain from zero to many  tags.
  • E、It is possible to construct a valid  tag such that,for a given resource,no user rolescan access that resource.

正确答案:B,E

第6题:

A web browser need NOT always perform a complete request for a particular page that it suspects mightNOT have changed. The HTTP specification provides a mechanism for the browser to retrieve only a partialresponse from the web server; this response includes information, such as the Last-Modified date but NOTthe body of the page. Which HTTP method will the browser use to retrieve such a partial response?()

  • A、GET
  • B、ASK
  • C、SEND
  • D、HEAD
  • E、TRACE

正确答案:D

第7题:

Given this fragment in a servlet: 23.if(req.isUserInRole("Admin")) { 24.// do stuff 25.} And the following fragment from the related Java EE deployment descriptor: 812. 813.Admin 814.Administrator 815. 900. 901.Admin 902.Administrator 903. What is the result?()

  • A、Line 24 can never be reached.
  • B、The deployment descriptor is NOT valid.
  • C、If line 24 executes, the user’s role will be Admin.
  • D、If line 24 executes, the user’s role will be Administrator.
  • E、If line 24 executes the user’s role will NOT be predictable.

正确答案:D

第8题:

The Hypertext Transfer Protocol,the Web's( )protocol,is at the heart of the Web.HTTP is implemented in two programs:a( )program and a server program.The client program and server program executing on different end systems,talk to each other by( )HTTP messages.HTTP defines how Web clients request Web pages from servers and how servers transfer web pages to clients.when a user( )a web page,the browser sends http request messages for the objects in the page to the server.The server(请作答此空)the requests and responds with http response messages that contain the objects.

A.declines
B.deletes
C.edits
D.receives

答案:D
解析:
Web的应用层协议是超文本传输协议,是web核心。HTTP在两类程序(客户端程序、服务器端程序)中执行。客户端程序、服务器端程序在不同的终端系统中执行,通过交换HTTP消息来进行交互。HTTP定义了Web客户端如何从服务器端请求Web页面以及服务器端如何传送Web页面到服务器。当用户请求一个web页面,浏览器发送页面对象的http请求给服务器。服务器接收请求并用包含对象的http消息进行响应。

第9题:

Which is the true choice about the web container request processing model()?

  • A、 The init method on a filter is called the first time a servlet mapped to that filter is invoked
  • B、 A filter defined for a servlet must always forward control to the next resource in the filter chain.
  • C、 Filters associated with a named servlet are applied in the order they appear in the web application deployment descriptor file
  • D、 If the init method on a filter throws an UnavailableException, then the container will make no further attempt to execute it

正确答案:C

第10题:

Given this fragment from a Java EE deployment descriptor: 341. 342.java.lang.Throwable  343./mainError.jsp 344. 345. 346.java.lang.ClassCastException  347./castError.jsp 348. If the web application associated with the fragment above throws a ClassCastException.Which statement is true?()

  • A、The deployment descriptor is invalid.
  • B、The container invokes mainError.jsp.
  • C、The container invokes castError.jsp.
  • D、Neither mainError.jsp nor castError.jsp is invoked.

正确答案:C

更多相关问题