jsp:forward相当于requestDispatcher还是sendRedirect呢?

jsp:forward相当于requestDispatcher还是sendRedirect呢?下面的实验给出答案。(视频下载) (全部书籍)

例 4.3.2:

<%@ page contentType="text/html; charset=GBK"%>
<% request.setAttribute("name","马克-to-win"); %>
<jsp:forward page="jsp2.jsp"/>



jsp2.jsp:

详情请见:http://www.mark-to-win.com/index.html?content=Jsp/jspUrl.html&chapter=Jsp/jsp3_web.html#IsjspforwardDispatcherOrsendRedirect

上一篇:英语(看到好的句子就记下来了,持续更新中)


下一篇:Servlet