试题详情
单项选择题 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></li><li><p>关注下方微信公众号,在线模考后查看</p></li><li><img src="https://www.mulintiku.com/images/mweixin.gif"></li></ul></section></section><div class="subject-subTitle">热门试题</div><ul class="subject-other"><li><a href="https://m.mulintiku.com/3081/t17516102.html"> You want </a></li><li><a href="https://m.mulintiku.com/7203/t17516078.html"> You are b</a></li><li><a href="https://m.mulintiku.com/2764/t17516000.html"> A developer&en</a></li><li><a href="https://m.mulintiku.com/3462/t17516008.html"> Given a h</a></li><li><a href="https://m.mulintiku.com/6647/t17516136.html"> A web app</a></li><li><a href="https://m.mulintiku.com/6822/t17516093.html"> In a JSP-</a></li><li><a href="https://m.mulintiku.com/5535/t17516151.html"> Your company&e</a></li><li><a href="https://m.mulintiku.com/8588/t17516054.html"> Given: 6.<myTag:foo</a></li><li><a href="https://m.mulintiku.com/6822/t17516095.html"> A developer&en</a></li><li><a href="https://m.mulintiku.com/5763/t17516018.html"> You have </a></li><li><a href="https://m.mulintiku.com/6700/t17515981.html"> Your managemen</a></li><li><a href="https://m.mulintiku.com/8599/t17516142.html"> The JSP d</a></li><li><a href="https://m.mulintiku.com/2240/t17515992.html"> Given that&ens</a></li><li><a href="https://m.mulintiku.com/5828/t17515995.html">Which EL </a></li><li><a href="https://m.mulintiku.com/9634/t17516103.html">Which two̳</a></li><li><a href="https://m.mulintiku.com/2524/t17516039.html">Which interfac</a></li><li><a href="https://m.mulintiku.com/4118/t17516169.html">Click the </a></li><li><a href="https://m.mulintiku.com/2163/t17515960.html"> You have </a></li><li><a href="https://m.mulintiku.com/3101/t17515959.html"> Given the&ensp</a></li><li><a href="https://m.mulintiku.com/8936/t17516035.html">Which two̳</a></li></ul></section></article></body></html>