单选题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 

题目
单选题
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/ctxl

B

in the subdirectory /META-INF/ctxl

C

in the subdirectory /ctxl in the root of the archive

D

in the subdirectory /ctxl/resource in the root of the archive

E

in the root of the archive

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

第1题:

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.transport-layer
B.application-layer
C.network-layer
D.link-layer

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

第2题:

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”)

正确答案:C

第3题:

Awebapplicationisboundtothecontextnamed"/webapp"andtheclientusesthebrowserandmakesarequesttotheresourcehttp://server:port/webapp/ctxl/resource.Wheredoyouplacethisresourceinsidethewebapplicationstructure?()

A.inthesubdirectory/WEB-INF/ctxl

B.inthesubdirectory/META-INF/ctxl

C.inthesubdirectory/ctxlintherootofthearchive

D.inthesubdirectory/ctxl/resourceintherootofthearchive

E.intherootofthearchive


参考答案:C

第4题:

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/ctxl
  • B、in the subdirectory /META-INF/ctxl
  • C、in the subdirectory /ctxl in the root of the archive
  • D、in the subdirectory /ctxl/resource in the root of the archive
  • E、in the root of the archive

正确答案:C

第5题:

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform.  You are creating an ASP.NET Web application using .NET Framework 4.0.  The application holds a Web page named MyHome.aspx.  You are creating a button with a rolloverimage on MyHome.aspx. However, when mouse hovered over the button image, the rolloverimage is retrieved from the server in a separate request. You need to use an improved rollover button in which the button„s rolloverimage is already downloaded and stored in the browser’s cache, as a result when you hover over the button, it is instantly displayed. What will you do to accomplish this?()

  • A、Use JavaScript Object Notation.
  • B、Use the RegisterClientScriptBlock method.
  • C、Use the RegisterClientScriptlnclude method.
  • D、Build a JavaScript function.
  • E、Use the RegisterClientScriptResource method.

正确答案:B,D

第6题:

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.transport-layer
B.application-layer
C.network-layer
D.link-layer

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

第7题:

Your web application uses a simple architecture in which servlets handle requests and then forward to aJSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP;furthermore, that JSP uses a custom tag and must also process this information. This information mustNOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?()

  • A、Store the data in a public instance variable in the servlet.
  • B、Add an attribute to the request object before using the request dispatcher.
  • C、Add an attribute to the context object before using the request dispatcher.
  • D、This CANNOT be done as the tag handler has no means to extract this data.

正确答案:B

第8题:

You have a server named Server1 that runs Windows Server 2003 Web Edition Service Pack 2 (SP2).You create a new virtual directory named App1. App1 contains a Web application.Users report that when they enter http://app1 in their Web browsers, they are unable to connect to the Web application.You need to ensure that users can access the Web application when they connect to http://app1.What should you do? ()

A. Move the content of the Web application to C:\App1. Change the home directory for App1.

B. Move the content of the Web application to C:\App1. Change the application pool for App1.

C. Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use port 8080. In DNS, create a Host record for App1.

D. Remove the App1 virtual directory. Create a new Web site, and then configure the Web site to use a host header of App1. In DNS, create a Host record for App1.


参考答案:D

第9题:

You need to recommend changes to Web1 that meet the company’s application requirements for the WebApp2 deployment.   What should you recommend?()

  • A、Add a second IP address.
  • B、Configure request filtering.
  • C、Create separate application pools.
  • D、Add worker processes to the DefaultAppPool.

正确答案:C

第10题:

You have a Web server named Server1 that runs Windows Server 2003 Service Pack 2 (SP2). Server1 hosts one Web site. You create a second Web site that hosts a third-party Web application named App1. The vendor of the third-party application states that the application does not support host headers. You need to ensure that users can access both Web sites. What should you do?()

  • A、Enable WebDAV.
  • B、Enable Server Side Includes.
  • C、Configure both Web sites to use different IP addresses.
  • D、Configure both Web sites to use different application pools.

正确答案:C

更多相关问题