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
答案解析:有
微信扫一扫手机做题