SCWCD(310-083)

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

题目
单选题
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?()
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>

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

第1题:

An ASP.NET application hosts a RESTful Windows Communication Foundation (WCF) service at /Services/Contoso.svc.The service provides a JavaScript resource to clients. You have an explicit reference to the JavaScript in your page markup as follows.You need to retrieve the debug version of the service JavaScript. What should you do?()

A. In the <%@ ServiceHost %> header for /Services/Contoso.svc, set the Debug attribute to true.

B. In the <%@ Page %> header, set the Debug attribute to true.

C. In the script tag, add a debug attribute and set its value to true.

D. In the script tag, append debug to the src attribute.


参考答案:D

第2题:

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

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

正确答案:B

第3题:

Header and Footer are strings of text that are placed at the(75) of each page of a document.

A.left or right

B.up or down

C.above or below

D.top or bottom


正确答案:D

第4题:

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

第5题:

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

第6题:

关于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

第7题:

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

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

正确答案:A

第8题:

You create a master page named PageBase.master. The master page contains a Label control named lblTitle.You create a content page that references the master page.You need to change the Text property of the master page‘s lblTitle control from the content page.Which code segment should you use?()

A.

B.

C.

D.


参考答案:A

第9题:

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

第10题:

关于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

更多相关问题