try{ con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.1:1521:ddd","user","passwd"); sql=con.createStatement(); rs=sql.executeQuery("select * from operator_info"); 之后少了}应为: try{ con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.1:1521:ddd","user","passwd"); sql=con.createStatement(); rs=sql.executeQuery("select * from operator_info"); } catch(SQLException e1) {}
catch(ClassNotFountException e){} 这一句为什么还报错。 An error occurred at line: 32 in the jsp file: /denglu.jsp Generated servlet error: /usr/local/tomcat/work/Catalina/localhost/_/org/apache/jsp/denglu_jsp.java:79: cannot resolve symbol symbol : class ClassNotFountException location: class org.apache.jsp.denglu_jsp catch(ClassNotFountException e){} 这一句什么意思。我不太懂
con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.1:1521:ddd","user","passwd");
sql=con.createStatement();
rs=sql.executeQuery("select * from operator_info");
之后少了}应为:
try{
con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.1:1521:ddd","user","passwd");
sql=con.createStatement();
rs=sql.executeQuery("select * from operator_info"); }
catch(SQLException e1) {}
这一句为什么还报错。
An error occurred at line: 32 in the jsp file: /denglu.jsp
Generated servlet error:
/usr/local/tomcat/work/Catalina/localhost/_/org/apache/jsp/denglu_jsp.java:79: cannot resolve symbol
symbol : class ClassNotFountException
location: class org.apache.jsp.denglu_jsp
catch(ClassNotFountException e){}
这一句什么意思。我不太懂
Fount拼写错误应为
catch(ClassNotFoundException e){}
这么写耦合太强了,建议还是用Struts比较好,更好维护
http://www.seeitco.com
收集国内外IT公司相关信息,并且有相关的评论和排名,你也可以把自己的看法加进去,包括待遇、薪水、公司规模等等,对于找工作的各位很有帮助哦!自己先在心里有个底,至少不会被各家公司眼花缭乱的招聘广告所蒙骗。各位也可以往里面添加新的公司信息,使数据库进一步完善,以后就会越来越方便!