jsp指令元素 include中遇到的index_jsp.class文件不生成的问题及原因
今天使用jsp指令元素include将两个jsp页面引入另一个jsp页面,启动服务器发现报500的错误,说index_jsp.class无法找到。于是去本地找了一下,发现确实没有生产.class文件

那说明是.java文件编译生成.class文件的过程中出现了问题,也就是这个.java文件是有bug的,才会导致编译无法通过。
无法通过的jsp页面代码如下图:
index.jsp页面
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2021/6/18
Time: 11:07
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() + "/";
%>
<html>
<head>
<base href="<%=basePath%>">
<title>title</title>
</head>
<body>
<%@ include file="top.jsp"%>
<h1>index页面</h1>
<%@ include file="bottom.jsp"%>
</body>
</html>


