|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
大型的应用一般不会用这些框架(因为性能考虑);开发人员根据需要选择用一些框架,也可以不选用框架;不用框架并不代表要自己写框架;修改框架的可能性更小。js|数据|数据库|数据库毗连|成绩
我的毗连程序以下:
----------------------------------------------
<%@pagecontentType="text/html;charset=GB2312"%>
<%Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
Stringurl="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=questionnaire";
Connectioncon=DriverManager.getConnection(url,"sa","801208161");
Statementsmt=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
ResultSetrs;
Stringsql;
%>
------------------------------------------------------
以下是堕落信息:
Anerroroccurredbetweenlines:1and7inthejspfile:/opendata.jsp
Generatedservleterror:
D: omcatworklocalhost\_opendata$jsp.java:56:Classorg.apache.jsp.Connectionnotfound.
Connectioncon=DriverManager.getConnection(url,"sa","801208161");
^
Anerroroccurredbetweenlines:1and7inthejspfile:/opendata.jsp
Generatedservleterror:
D: omcatworklocalhost\_opendata$jsp.java:56:Undefinedvariableorclassname:DriverManager
Connectioncon=DriverManager.getConnection(url,"sa","801208161");
^
Anerroroccurredbetweenlines:1and7inthejspfile:/opendata.jsp
Generatedservleterror:
D: omcatworklocalhost\_opendata$jsp.java:57:Classorg.apache.jsp.Statementnotfound.
Statementsmt=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
^
Anerroroccurredbetweenlines:1and7inthejspfile:/opendata.jsp
Generatedservleterror:
D: omcatworklocalhost\_opendata$jsp.java:58:Classorg.apache.jsp.ResultSetnotfound.
ResultSetrs;
^
4errors,1warning
Java编译的是字节码,跟C++相反,启动不够快,效率不够高,难以精确控制内存,但是优点是编程比C++容易,代码比较安全但是容易留下性能隐患,跨平台靠字节码在各个平台复制(一处编译到处调试) |
|