問題詳情

92 You are building your own layout mechanism by including dynamic content for the page'sheader and footer sections. The footer is always static, but the header generates the <title> tag thatrequests the page name to be specified dynamically when the header is imported.Which JSP code snippet performs the import of the header content?
(A) <jsp:include page='/WEB-INF/jsp/header.jsp'><jsp:param name='pageName' value='WelcomePage'/></jsp:include>
(B) <jsp:import page='/WEB-INF/jsp/header.jsp'><jsp:param name='pageName' value='WelcomePage'/></jsp:import>
(C) <jsp:include page='/WEB-INF/jsp/header.jsp'><jsp:attribute name='pageName' value='WelcomePage' /></jsp:include>
(D) <jsp:import page='/WEB-INF/jsp/header.jsp'><jsp:attribute name='pageName' value='WelcomePage'/></jsp:import>

參考答案

無參考答案

內容推薦

內容推薦