-
jsp:forward重定向
当index.jsp存放在tomcat服务器应用目录下时:D:Tomcat 7.0webappsSpring_shizhan4ban_Chapter05index.jsp,当输入URL:http://localhost:8080/Spring_shizhan4ban_Chapter05/就会访问index.jsp页面。
index.jsp的内容为:
<jsp:forward page="home" />
jsp:forward表示跳转到http://localhost:8080/Spring_shizhan4ban_Chapter05/home,但是你在浏览器看到的地址没有变动,还是之前的地址。