A web application is bound to the context named "/webapp" an

题目
单选题
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
解析: 暂无解析
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which three are described in the standard web application deployment descriptor?()  

  • A、 session configuration
  • B、 MIME type mappings
  • C、 context root for the application
  • D、 servlet instance pool configuration
  • E、 web container default port bindings
  • F、 ServletContext initialization parameters

正确答案:A,B,F

第2题:

Which three are described in the standard web application deployment descriptor?()

  • A、session configuration
  • B、MIME type mappings
  • C、context root for the application
  • D、servlet instance pool configuration
  • E、web container default port bindings
  • F、Servlet Context initialization parameters

正确答案:A,B,F

第3题:

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

第4题:

You have the Web Server (IIS) role installed on a server that runs Windows Server 2008. You create a Web site named contoso.com. You copy an application named WebContent to the server. You need to enable the WebContent application on the Web site. What should you do?()

  • A、At the command prompt on the server, run the appcmd add site command.
  • B、At the command prompt on the server, run the appcmd add vdir command.
  • C、Select the Web site from the Internet Information Services (IIS) Manager console. Select Add Application.
  • D、Select the Web site from the Internet Information Services (IIS) Manager console. Select Add Virtual Directory.

正确答案:C

第5题:

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

正确答案:C

第6题:

Spring IOC容器管理Action的方式()。

  • A、使用org.springframework.web.struts.DelegatingRequestProcessor
  • B、使用org.springframework.web.struts.DelegatingActionProxy
  • C、使用org.springframework.web.context.ContextLoaderListener
  • D、使用org.springframework.web.context.ContextLoaderServlet

正确答案:A,B

第7题:

You have created a web application that you license to real estate brokers. The webapp is highly customizable including the email address of the broker, which is placed on the footer of each page. This isconfigured as a context parameter in the deployment descriptor: 10. 11.footerEmail 12.joe@estates-r-us.biz 13. Which EL code snippet will insert this context parameter into the footer?()

  • A、<a href=’mailto:${footerEmail}’>Contact me</a>
  • B、<a href=’mailto:${initParam@footerEmail}’>Contact me</a>
  • C、<a href=’mailto:${initParam.footerEmail}’>Contact me</a>
  • D、<a href=’mailto:${contextParam@footerEmail}’>Contact me</a>
  • E、<a href=’mailto:${contextParam.footerEmail}’>Contact me</a>

正确答案:C

第8题:

You are planning to migrate an existing web application to Windows Azure.  The application consists of an ASP.NET web application and a set of native Win32 Windows Services that provide data to the application by using named pipes. The Windows Services cannot be modified.  You need to recommend a strategy for migrating the application to Windows Azure.  What should you recommend?()

  • A、 Define a Windows CommunicationFoundation (WCF) contract for the services.
  • B、 Deploy each Windows Service to a separate worker role.  Deploy the ASP.NET application to a web role.
  • C、 Deploy the application and Windows Services in a Windows Azure VM role.
  • D、 Upload service binaries to a web role by using the Windows Azure Service Management API.

正确答案:B

第9题:

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

第10题:

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 Web application comprises a class named Employee with properties named as First Name, Last Name, and Age. You add a Web page in which you get a list of Employee objects and display those objects in a GridView control. You are required to add code so that the GridView row is highlighted in red color if the age of the employee is less than 21 years.  What will you do to accomplish this?()

  • A、Use the RowCommand event of the GridView control.
  • B、Use the SelectedlndexChanged event of the GridView control.
  • C、Use the RowDataBound event of the GridView control.
  • D、Use the RowEditing event of the GridView control.
  • E、Use the RowUpdated event of the GridView control.

正确答案:C

更多相关问题