试题详情
单项选择题 Your web application views all have the same header, which includes the  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></dt><dd><p>A、<jsp:insert page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:insert></p></dd><dd><p>B、<jsp:include page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include></p></dd><dd><p>C、<jsp:include file=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include></p></dd><dd><p>D、<jsp:insert page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:insert></p></dd><dd><p>E、<jsp:include page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:include></p></dd></dl></section><ul class="answer"><li><label>正确答案:</label><span>E</span></li><li><label>答案解析:</label><p>关注下方微信公众号,在线模考后查看</p></li><li><img src="https://www.274949.com/images/mweixin.gif"></li></ul></section></section><div class="subject-subTitle">热门试题</div><ul class="subject-other"><li><a href="https://m.274949.com/9044/t17517032.html"> import java.io</a></li><li><a href="https://m.274949.com/9916/t17517657.html"> 为将数组myArray的长度由6改为1</a></li><li><a href="https://m.274949.com/5458/t17516063.html"> Given the&ensp</a></li><li><a href="https://m.274949.com/58/t17517818.html">可以通过继承哪个类来创建线程?̳</a></li><li><a href="https://m.274949.com/931/t17518050.html">为了保证方法的线程安全,声明方法的时候必</a></li><li><a href="https://m.274949.com/587/t17516387.html">Which are̳</a></li><li><a href="https://m.274949.com/5777/t17516204.html"> public class&e</a></li><li><a href="https://m.274949.com/1459/t17516373.html"> What will&ensp</a></li><li><a href="https://m.274949.com/6852/t17517941.html">Swing允许你选择程序的图形界面风格,</a></li><li><a href="https://m.274949.com/8956/t17518315.html">求[10,1000]之间满足除以7余5、</a></li><li><a href="https://m.274949.com/3269/t17516218.html">Which statemen</a></li><li><a href="https://m.274949.com/6394/t17516888.html"> int index&ensp</a></li><li><a href="https://m.274949.com/1552/t17517655.html">Java语言中表达式-12>>3Q</a></li><li><a href="https://m.274949.com/232/t17517913.html">以下关于中断控制语句的描述,错误的是()</a></li><li><a href="https://m.274949.com/358/t17517120.html">Assume theQ</a></li><li><a href="https://m.274949.com/4476/t17516045.html"> Given the&ensp</a></li><li><a href="https://m.274949.com/1694/t17517813.html"> class Passer&e</a></li><li><a href="https://m.274949.com/3744/t17518629.html">以下哪些jvm的垃圾回收方式采用的是复制</a></li><li><a href="https://m.274949.com/5424/t17517976.html">如何在框架中显示标题?() </a></li><li><a href="https://m.274949.com/7773/t17516517.html">Which four&ensp</a></li></ul></section></article><script src="https://www.274949.com/js/yidongyewei.js" type="text/javascript"></script></body></html>