试题详情
单项选择题 You have built your own light-weight templating mechanism. Your servlets, which handle each request,dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout ofthe view by inserting the header, body, and footer elements into specific locations within the template page.The URLs for these three elements are stored in request scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP codesnippet should be used in the template JSP to insert the JSP content for the body of the page?()

A、<jsp:insert page=’${bodyURL}’ />

B、<jsp:insert file=’${bodyURL}’ />

C、<jsp:include page=’${bodyURL}’ />

D、<jsp:include file=’${bodyURL}’ />

E、<jsp:insert page=’<%= bodyURL %>’ />

  • C
  • 关注下方微信公众号,在线模考后查看

热门试题