关于myeclipse自动生成的index.jsp问题
还有我把index.jsp删除后再运行项目中其他的jsp文件就出现404的错误,请问怎么解决?
谢谢了 展开
2016-03-14 · 百度知道合伙人官方认证企业
myeclipse自动生成的index.jsp问题:
配置:
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
??? <base href="<%=basePath%>">??? <title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">???
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head><body>
This is my JSP page. <br>
</body>
</html>
<welcome-file-list>
<welcome-file>login.jsp</welcome-file>
</welcome-file-list>
将login.jsp改为你想要显示的jsp页,就不会报404错误了
出现404错误你就看看哪个jsp访问不到了,再找问题原因,跟自动生成的index.jsp是没有关系的