可学答题网 > 问答 > SCWCD(310-083)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Your web application v


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>
参考答案
参考解析:
分类:SCWCD(310-083)题库
相关推荐

1、Users of your web&ensp

Users&ensp;of&ensp;your&ensp;web&ensp;application&ensp;have&ensp;requested&ensp;that&ensp;they&ensp;should&ensp;be&ensp;able&ensp;to&ensp;set&ensp;the&ensp;duration&...

2、Your application must 

Your&ensp;application&ensp;must&ensp;access&ensp;data&ensp;that&ensp;is&ensp;located&ensp;on&ensp;two&ensp;SQL&ensp;Server&ensp;2005&ensp;computers.&ensp;One&ensp;of...

3、Your web application u

Your&ensp;web&ensp;application&ensp;uses&ensp;a&ensp;simple&ensp;architecture&ensp;in&ensp;which&ensp;servlets&ensp;handle&ensp;requests&ensp;and&ensp;then&ensp;forw...

4、You web application us

You&ensp;web&ensp;application&ensp;uses&ensp;a&ensp;lot&ensp;of&ensp;Java&ensp;enumerated&ensp;types&ensp;in&ensp;the&ensp;domain&ensp;model&ensp;of&ensp;the&ensp;ap...

5、Your web application r

Your&ensp;web&ensp;application&ensp;requires&ensp;the&ensp;ability&ensp;to&ensp;load&ensp;and&ensp;remove&ensp;web&ensp;files&ensp;dynamically&ensp;to&ensp;the&ensp;...

6、A web application allo

A&ensp;web&ensp;application&ensp;allows&ensp;the&ensp;HTML&ensp;title&ensp;banner&ensp;to&ensp;be&ensp;set&ensp;using&ensp;a&ensp;servlet&ensp;context&ensp;initializ...