jsp cannot be resolved to a type错误

hisao1 2012-05-26 10:27:17
<%@ page contentType="text/html; charset=GB2312" %>
<%@ page import="java.util.*" %>
<html>
<head>

</head>

<body>
<table align="center">
<tr>
<th width=200>会议主题</th><th width=200>会议地点</th><th width=100>主持人</th><th width=100>人数</th><th width=200>时间</th>
</tr>
<%
int meeting_count=0;
Collection meetings=(Collection)request.getAttribute("meetings");
Iterator it=meetings.iterator();
while(it.hasNext())
{
meetingVO meeting=(meetingVO)it.next();
%>
<tr>
<td ><%=meeting.getMeetingTheme() %></td>
<td><%=meeting.getMeetingDestination() %></td>
<td><%=meeting.getChairman() %></td>
<td><%=meeting.getAttendNumber() %></td>
<td><%=meeting.getDate() %></td>
</tr>
<%} %>


</table>
</body>
</html>
错误为

012-5-26 22:29:37 org.apache.catalina.core.ApplicationDispatcher invoke
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 19 in the jsp file: /meetingRusult.jsp
meetingVO cannot be resolved to a type
16: Iterator it=meetings.iterator();
17: while(it.hasNext())
18: {
19: meetingVO meeting=(meetingVO)it.next();
20: %>
21: <tr>
22: <td ><%=meeting.getMeetingTheme() %></td>


An error occurred at line: 19 in the jsp file: /meetingRusult.jsp
meetingVO cannot be resolved to a type
16: Iterator it=meetings.iterator();
17: while(it.hasNext())
18: {
19: meetingVO meeting=(meetingVO)it.next();
20: %>
21: <tr>
22: <td ><%=meeting.getMeetingTheme() %></td>
...全文
128 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
zyczy1314 2012-05-26
  • 打赏
  • 举报
回复
在jsp里也要导入import。。。
hisao1 2012-05-26
  • 打赏
  • 举报
回复
导入了啊 在\iOffice\WEB-INF\classes有这个类的
kankan231 2012-05-26
  • 打赏
  • 举报
回复
meetingVO这个类没导入吧

50,503

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧