JSP文件:[/goddess.jsp] 的第 [45] 行发生了一个错误 GoddessAction cannot be resolved to a type JSP文件:[/goddess.jsp] 的第 [46] 行发生了一个错误 Goddess cannot be resolved to a type jsp文件找不到我导入的文件是怎么回事?
<?xml version="1.0" encoding="UTF-8" ?>
<%@page import="com.imooc.model.Goddess.*"%>
<%@page import="com.imooc.action.GoddessAction.*"%>
<%@page import="java.util.List.*"%>
<%@page import="com.imooc.db.DBUtil.*"%>
ext/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<title>管理员界面</title>
<link rel="stylesheet" href="学院网页/css/bootstrap.css">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<style>
.wa{
display:flex;
justify-content:space-around;
}
li{
padding-top:50px;
}
</style>
<body>
<div style="width:1000px;">
<table class="table table-striped" >
<thead>
<tr>
<th>编号</th>
<th>姓名</th>
<th>年龄</th>
<th>生日</th>
<th>邮箱</th>
<th>电话</th>
</tr>
</thead>
<tbody>
<%
GoddessAction action=new GoddessAction();
Goddess goddess=new Goddess();
try {
List<Goddess> list=action.query();
for (Goddess go : list) { %>
<tr>
<td style="width:20%;"><%=go.getId() %></td>
<td style="width:10%;"><%=go.getUser_name() %></td>
<td><%=go.getAge() %></td>
<td style="width:20%;"><%=go.getBirthday() %></td>
<td style="width:20%;"><%=go.getEmail()%></td>
<td style="width:20%;"><%=go.getMobile() %></td>
</tr>
<%
}
%>
<%}
catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
%>
</tbody>
</table>
</div>
</body>
</html>