niusouti.com

You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imp

题目

You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?() <title>

  • A、<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>
  • B、<jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>
  • C、<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>
  • D、<jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>

相似考题
更多“You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is impo”相关问题
  • 第1题:

    Why is IPv6 packet processing more effective than IPv4 packet processing?()

    A. fixed header size

    B. smaller header size

    C. fewer header fields

    D. variable header size


    参考答案:A

  • 第2题:

    在窗体上建立多页面,需要首先建立的对象是() 

    • A、Tab Control
    • B、Page Control
    • C、Header Control
    • D、Page Scroller

    正确答案:B

  • 第3题:

    Every page of your web site must include a common set of navigation menus at the top of the page. Thismenu is static HTML and changes frequently,so you have decided to use JSP’s static import mechanism. Which JSP code snippet accomplishes this goal?()

    • A、<%@ import file=’/common/menu.html’ %>
    • B、<%@ page import=’/common/menu.html’ %>
    • C、<%@ import page=’/common/menu.html’ %>
    • D、<%@ include file=’/common/menu.html’ %>
    • E、<%@ page include=’/common/menu.html’ %>

    正确答案:D

  • 第4题:

    You create an ASP.NET page that contains the following tag.  Page Name  You need to write code that will change the contents of the tag dynamically when the page is loaded. What are two possible ways to achieve this goal?()

    • A、this.hdr1.InnerHtml = "Text";
    • B、(hdr1.Parent as HtmlGenericControl).InnerText = "Text";
    • C、HtmlGenericControl h1 = this.FindControl("hdr1") as HtmlGenericControl;h1.InnerText = "Text";
    • D、HtmlGenericControl h1 = Parent.FindControl("hdr1") as HtmlGenericControl;h1.InnerText = "Text";

    正确答案:A,C

  • 第5题:

    关于Access-Link,下面描述正确的是:()

    • A、当Access端口收到帧时,如果该帧不包含802.1Q tag header,将打上端口的PVID
    • B、当Access端口收到帧时,如果该帧包含802.1Q tag header中的VLANID和端口不一致,则更改tag中的VLANID为PVID
    • C、当Access端口发送帧时,剥离802.1Q tag header,发出的帧为普通以太网帧
    • D、当Access端口发送帧时,保留802.1Q tag header,发出的帧为带tag的以太网帧

    正确答案:A,C

  • 第6题:

    Why is IPv6 packet processing more effective than IPv4 packet processing?()

    • A、fixed header size
    • B、smaller header size
    • C、fewer header fields
    • D、variable header size

    正确答案:A

  • 第7题:

    下列选项中,可以实现文件下载的是()。

    • A、header("Content-type:text/html;charset=utf-8")
    • B、header("Content-type:image/jpeg")
    • C、header("Content-Disposition:attachment;filename=girl.jpg")
    • D、header("Location:http://www.test.com")

    正确答案:C

  • 第8题:

    You design a Business Intelligence (BI) solution by using SQL Server 2008. You create a SQL Server 2008 Reporting Services (SSRS) solution. You create reports by using Microsoft Visual Studio .NET 2008. The development team of your company must create 50 SSRS reports. You need to ensure that the company logo and the company name are included in the page header of all the reports. What should you do?()

    • A、 Create an SSRS report and include the required page header in the report. Use the report as a template for all the reports.
    • B、 Create an SSRS report and include the required page header in the report. Create a subreport that refers to the report. Include the subreport to all the reports.
    • C、 Create a SSRS report and include the required page header in the report. Copy the report definition to an XML file.Add the XML file as a data source for all the reports.
    • D、 Create a SSRS report and include the required page header in the report. Create a class library that includes the report.Add the class library as an assembly reference for all the reports.

    正确答案:A

  • 第9题:

    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application must redirect the original URL to a different ASPX page.  You need to ensure that the users cannot view the original URL after the page is executed. You also need to ensure that each page execution requires only one request from the client browser. What should you do?()

    • A、Use the Server.Transfer method to transfer execution to the correct ASPX page.
    • B、Use the Response.Redirect method to transfer execution to the correct ASPX page.
    • C、Use the HttpContext.Current.RewritePath method to transfer execution to the correct ASPX page.
    • D、Add the Location: new URL value to the Response.Headers collection. Call the Response.End() statement. Send the header to the client computer to transfer execution to the correct ASPX page.

    正确答案:C

  • 第10题:

    单选题
    页框(PageFrame)能包容的对象是()。
    A

    页面(Page)

    B

    列(Column)

    C

    标头(Header)

    D

    表单集(FormSet)


    正确答案: C
    解析: 暂无解析

  • 第11题:

    单选题
    Every page of your web site must include a common set of navigation menus at the top of the page. Thismenu is static HTML and changes frequently,so you have decided to use JSP’s static import mechanism. Which JSP code snippet accomplishes this goal?()
    A

    <%@ import file=’/common/menu.html’ %>

    B

    <%@ page import=’/common/menu.html’ %>

    C

    <%@ import page=’/common/menu.html’ %>

    D

    <%@ include file=’/common/menu.html’ %>

    E

    <%@ page include=’/common/menu.html’ %>


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

  • 第12题:

    单选题
    Your web application views all have the same header, which includes the  tag in the  elementof the rendered HTML. You have decided to remove this redundant HTML code from your JSPs and put itinto a single JSP called /WEB-INF/jsp/header.jsp. However, the title of each page is unique, so you havedecided to use a variable called pageTitle to parameterize this in the header JSP, like this: 10.${param.pageTitle} Which JSP code snippet should you use in your main view JSPs to insert the header and pass thepageTitle variable?()
    A

    <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:insert>

    B

    <jsp:include page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>

    C

    <jsp:include file=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>

    D

    <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:insert>

    E

    <jsp:include page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:include>


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

  • 第13题:

    关于Access-Link,下面描述正确的是:()

    A.当Access端口收到帧时,如果该帧不包含802.1Q tag header,将打上端口的PVID

    B.当Access端口收到帧时,如果该帧包含802.1Q tag header中的VLANID和端口不一致,则更改tag中的VLANID为PVID

    C.当Access端口发送帧时,剥离802.1Q tag header,发出的帧为普通以太网帧

    D.当Access端口发送帧时,保留802.1Q tag header,发出的帧为带tag的以太网帧


    参考答案:A, C

  • 第14题:

    页框(PageFrame)能包容的对象是()。

    • A、页面(Page)
    • B、列(Column)
    • C、标头(Header)
    • D、表单集(FormSet)

    正确答案:A

  • 第15题:

    What are the two components of HTTP acceleration? ()(Choose two.)

    • A、caching
    • B、prefetch
    • C、header caching
    • D、content or entity caching

    正确答案:A,B

  • 第16题:

    If you want to use the Java EE platform’s built-in type of authentication that uses a custom HTML page for authentication. Which two statements are true?()

    • A、Your deployment descriptor will need to contain this tag: CUSTOM.
    • B、The related custom HTML login page must be named loginPage.html.
    • C、When you use this type of authentication, SSL is turned on automatically.
    • D、You must have a tag in your deployment descriptor that allows you to point to both a login HTML pageand an HTML page for handling any login errors.
    • E、In the HTML related to authentication for this application, you must use predefined variable names fort he variables that store the user and password values.

    正确答案:D,E

  • 第17题:

    You have built your own light-weight templating mechanism. Your servlets, which handle each request,dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout ofthe view by inserting the header, body, and footer elements into specific locations within the template page.The URLs for these three elements are stored in request scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP codesnippet should be used in the template JSP to insert the JSP content for the body of the page?()

    • A、<jsp:insert page=’${bodyURL}’ />
    • B、<jsp:insert file=’${bodyURL}’ />
    • C、<jsp:include page=’${bodyURL}’ />
    • D、<jsp:include file=’${bodyURL}’ />
    • E、<jsp:insert page=’<%= bodyURL %>’ />

    正确答案:C

  • 第18题:

    When an SRX series device receives an ESP packet, what happens?()

    • A、If the destination address of the outer IP header of the ESP packet matches the IP address of the ingress interface, it will
    • B、If the destination IP address in the outer IP header of ESP does not match the IP address of the ingress interface, it will
    • C、If the destination address of the outer IP header of the ESP packet matches the IP address of the ingress interface, based packet.
    • D、If the destination address of the outer IP header of the ESP packet matches the IP address of the ingress interface, based of inner header, it will decrypt the packet.

    正确答案:C

  • 第19题:

    You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do? ()

    • A、Set Page.MasterPageFile in the Page's Page_Init event.
    • B、Set Page.MasterPageFile in the Page's OnInit event.
    • C、Set Page.MasterPageFile in the Page's Page_Load event.
    • D、Set Page.MasterPageFile in the Page's Page_PreInit event.

    正确答案:D

  • 第20题:

    You are developing an ASP.NET Web application. You create a master page. The master page requires a region where you can add page-specific content by using the ASP.NET page designer.  You need to add a control to the master page to define the region. Which control should you add?()

    • A、Content
    • B、ContentPlaceHolder
    • C、PlaceHolder
    • D、Substitution

    正确答案:B

  • 第21题:

    多选题
    For an HttpServlet Response response, which two create a custom header()
    A

    response.set Header (“X-MyHeader”. “34”):

    B

    response.addHeader (“X-MyHeader”. “34”):

    C

    response. Set Header (new Http Header (“X-MyHeader”. “34”)):

    D

    response.addHeader(new Http Header (“X-MyHeader”. “34”)):

    E

    response. addHeader (new Servlet Header (“X-MyHeader”. “34”)):

    F

    response. setHeader (new Servlet Header (“X-MyHeader”, “34”)):


    正确答案: F,C
    解析: 暂无解析

  • 第22题:

    单选题
    You develop a Web application that contains two master pages. You need to dynamically set the master page when a user views pages in the application. What should you do?()
    A

    SetPage.MasterPageFile in the Page’sPage_Initevent.

    B

    SetPage.MasterPageFile in the Page’sOnInit event.

    C

    SetPage.MasterPageFile in the Page’sPage_Loadevent.

    D

    SetPage.MasterPageFile in the Page’sPage_PreInitevent.


    正确答案: D
    解析: 暂无解析

  • 第23题:

    单选题
    You design a Business Intelligence (BI) solution by using SQL Server 2008. You create a SQL Server 2008 Reporting Services (SSRS) solution. You create reports by using Microsoft Visual Studio .NET 2008. The development team of your company must create 50 SSRS reports. You need to ensure that the company logo and the company name are included in the page header of all the reports. What should you do?()
    A

     Create an SSRS report and include the required page header in the report. Use the report as a template for all the reports.

    B

     Create an SSRS report and include the required page header in the report. Create a subreport that refers to the report. Include the subreport to all the reports.

    C

     Create a SSRS report and include the required page header in the report. Copy the report definition to an XML file.Add the XML file as a data source for all the reports.

    D

     Create a SSRS report and include the required page header in the report. Create a class library that includes the report.Add the class library as an assembly reference for all the reports.


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