使用request.getRequestDispatcher跳转出现“本系统可能有些功能不支持IE6”

根本原因是 request.getRequestDispatcher将当前文件的路径给改了
解决:

<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

然后在需要写路径的地方加上 <%=basePath%> 搞定。

参考:https://blog.csdn.net/zgljl2012/article/details/41664723

猜你喜欢

转载自blog.csdn.net/ken1583096683/article/details/81073292
今日推荐