其他分享
首页 > 其他分享> > jsp:forward相当于requestDispatcher还是sendRedirect呢?

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

标签:requestDispatcher,sendRedirect,html,Jsp,forward,jsp
来源: https://www.cnblogs.com/mark-to-win/p/10554313.html