org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 30 in the jsp file: /vote/TopicAction.jsp
Generated servlet error:
/usr/local/Tomcat/work/Catalina/localhost/jsp/org/apache/jsp/vote/TopicAction_jsp.java:106: '(' or '[' expected
List<Integer> alist=new ArrayList<Integer>();
^
1 error
这是报的错误!问题是 我代码在本地运行一点问题也没有!只不过部署到了服务器上面就出这个错误以下是代码: String sql2="SELECT ATTACHID FROM BBS.MVNFORUMATTACHMENT WHERE POSTID="+a;
ResultSet rs2=stat.executeQuery(sql2);
List<Integer> alist=new ArrayList<Integer>();
while(rs2.next()){
int f= rs2.getInt("ATTACHID");
alist.add(f);
}
System.out.println("这是memberid");
session.setAttribute("image",alist);
session.setAttribute("threadID",threadID);
response.sendRedirect("Topicshow.jsp");
慕沐林林
回首忆惘然
尚方宝剑之说
相关分类