南开大学 / J2EE信息系统设计
正确率:100%
给定include1.jsp文件代码片断,如下:<%pageContext.setAttribute(“User”,“HAHA”);%>_______//; 给定include2.jsp文件代码片断,如下:<%=pageContext.getAttribute(“User”)%>。要求运行include1.jsp时,浏览器上输出HAHA。要满足以上条件,jsp1.jsp中下划线处应填入以下语句:()
A.<includepage=“include2.jsp”flush=“true”/>
B.<%@includefile=“include2.jsp”%>
C.<jsp:forwordpage=“include2.jsp”/>
D.<%response.sendRedirect(“include2.jsp”);%>
参考答案:
佳题速递: