<%
response.sendRedirect("tttt");
%>
如果调转的是文件夹 他就以文件夹下的文件 和 web.xml的welcome-file 匹配 加载~
<welcome-file-list>
<welcome-file>/aaa.jsp</welcome-file>
<welcome-file>/tttt.jsp</welcome-file>
<welcome-file>/index.html</welcome-file>
</welcome-file-list>
加载 tttt文件夹下的tttt.jsp文件
response.sendRedirect("tttt");
%>
如果调转的是文件夹 他就以文件夹下的文件 和 web.xml的welcome-file 匹配 加载~
<welcome-file-list>
<welcome-file>/aaa.jsp</welcome-file>
<welcome-file>/tttt.jsp</welcome-file>
<welcome-file>/index.html</welcome-file>
</welcome-file-list>
加载 tttt文件夹下的tttt.jsp文件