A.<%@ page mimeType="text/plain" %> B.<%@ page contentType="text/plain" %> C.<%@ page pageEncoding="text/plain" %> D.<%@ page contentEncoding="text/plain" %> E.<% response.setEncoding("text/plain"); %>
You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the <title> tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?()
A.<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include> B.<jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import> C.<jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include> D.<jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>
Given tutorial.jsp: 2.EL Tutorial 3.Example 1 4. 5.Dear ${my:nickname(user)} 6. Which, when added to the web application deployment descriptor,ensures that line 5 is included verbatimin the JSP output?()
A. B. C. D.