试题详情
- 单项选择题 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>
- E
关注下方微信公众号,在线模考后查看
热门试题
- import java.io
- 为将数组myArray的长度由6改为1
- Given the&ensp
- 可以通过继承哪个类来创建线程?̳
- 为了保证方法的线程安全,声明方法的时候必
- Which are̳
- public class&e
- What will&ensp
- Swing允许你选择程序的图形界面风格,
- 求[10,1000]之间满足除以7余5、
- Which statemen
- int index&ensp
- Java语言中表达式-12>>3Q
- 以下关于中断控制语句的描述,错误的是()
- Assume theQ
- Given the&ensp
- class Passer&e
- 以下哪些jvm的垃圾回收方式采用的是复制
- 如何在框架中显示标题?()
- Which four&ensp