问答

打开jsp 老是报404错误 求助。。。

作者:admin 2021-09-24 我要评论

%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"% % String path = request.getContextPath(); String basePath = reque...

在说正事之前,我要推荐一个福利:你还在原价购买阿里云、腾讯云、华为云服务器吗?那太亏啦!来这里,新购、升级、续费都打折,能够为您省60%的钱呢!2核4G企业级云服务器低至69元/年,点击进去看看吧>>>)

<%@ page language="java" contentType="text/html; charset=UTF-8"

pageEncoding="UTF-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>信息管理系统界面</title>
</head>
<frameset rows="88,*,31" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="top.jsp" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
<frameset cols="187,*" frameborder="no" border="0" framespacing="0">

<frame src="left.jsp" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
<frame src="index.jsp" name="rightFrame" id="rightFrame" title="rightFrame" />

</frameset>
<frame src="footer.jsp" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
</frameset>
<noframes><body>
</body></noframes>
</html>
image.png
image.png

###

404 就是请求不到页面啊,检查启动有没有报错,路径是否正确啊

###

看看项目的 login/index.jsp 是否存在

版权声明:本文转载自网络,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本站转载出于传播更多优秀技术知识之目的,如有侵权请联系QQ/微信:153890879删除

相关文章
  • 打开jsp 老是报404错误 求助。。。

    打开jsp 老是报404错误 求助。。。

  • 一个spring mvc项目,异常信息直接输出

    一个spring mvc项目,异常信息直接输出

  • idea设置了热部署,为什么每次修改java

    idea设置了热部署,为什么每次修改java

  • 新手入门go开发框架gin,代码与教程中

    新手入门go开发框架gin,代码与教程中

腾讯云代理商
海外云服务器