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:. ${pageTitle=’Welcome Page’}.
B:. ${pageTitle=’Welcome Page’}.
C:. ${pageTitle=’Welcome Page’}.
D:. .
E:. .
A:
B:
C:
D:
E:
举一反三
- 使用动作元素,将 no10 项目下面的 public 文件夹中的 header.jsp 包含到 index.jsp 文件中。请问在 index.jsp 文件中实现上述功能的动作元素代码书写正确的是( ) A: <;jsp:include page="header.jsp" />; B: <;jsp:include page="/public/header.jsp" />; C: <;jsp:include page="/no10/public/index.jsp" />; D: <;jsp:include file="/public/header.jsp" />;
- 以下()不属于JSP指令标签 A: page B: include C: <;jsp:include>;
- 在JSP文件中加载动态页面可以用指令( )。 A: <;%@ include file="filename" %>; B: <;jsp:include/>; C: page指令 D: <;jsp:forward/>;指令
- 下面关于动态包含的语法格式,书写正确的是( ) A: <%@include file=”relativeURL”/> B: <jsp:forward page=”relativeURL”/> C: <jsp:forward file=”relativeURL” /> D: <jsp:include page=”relativeURL”/>
- 用于向其他文件传递参数的动作标签是()。 A: <;jsp:include>;<;/jsp:include>; B: <;jsp:plugin>;<;/jsp:plugin>; C: <;jsp:param>;<;/jsp:param>; D: <;jsp:useBean>;<;/jsp:useBean>;