下面哪个方法不属于JSP指令:()
A:
B: <%@include file=”head.jsp”%>
C: <%@taglib uri=”/struts.tags” prefix=”s”%>
D: <%@page contectType=”texthtml,charset=gb2312”%>
A:
B: <%@include file=”head.jsp”%>
C: <%@taglib uri=”/struts.tags” prefix=”s”%>
D: <%@page contectType=”texthtml,charset=gb2312”%>
举一反三
- 下面哪个方法不属于JSP指令:() 未知类型:{'options': ['', '[%@include\u2002file=”head.jsp”%]', '[%@taglib\u2002uri=”/struts.tags”\u2002prefix=”s”%]', '[%@page\u2002contectType=”texthtml,charset=gb2312”%]'], 'type': 102}
- 下列选项可以正确导入JSTL标签库的是( )。 A: <% taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"> B: <% taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"> C: <% taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"> D: <% page prefix="c" uri="http://java.sun.com/jsp/jstl/core">
- 以下通过JSP的include指令来引入其他JSP页面方式正确的是() A: <;%@include file="head.jsp"%>; B: <;% @include file="head.jsp"%>; C: <;%@ include file="head.jsp"%>; D: <; %@include file="head.jsp"% >;
- 下列指令中,可以导入JSTL核心标签库的是( )。 A: %@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"% B: %!taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"% C: %@taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="c"% D: % taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%
- Your web application views all have the same header, which includes the <title> tag in the <head> 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.<title>${param.pageTitle}<title> 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>