给定include1.jsp文件代码片断,如下: <%?pageContext.setAttribute("User","HAHA");%> ____________//此处填写代码? 给定include2.jsp文件代码片断,如下: <%=pageContext.getAttribute("User")%> 要求运行include1.jsp时,浏览器上输出:HAHA? 要满足以上条件,include1.jsp中下划线处应填入以下()语句。
发布时间:2021年10月04日
A.<jsp:include?page="include2.jsp"?flush="true"/>
B.<%@?include?file="include2.jsp"%>
C.<jsp:forword?page="include2.jsp"/>
D.<%?response.sendRedirect("include2.jsp");%>
答案:B