資源簡介
JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)

代碼片段和文件信息
package?numb1.com;
import?java.lang.*;
import?java.sql.*;
public?class?db{
??private?Connection?con;
??private?Statement?st;
??private?ResultSet?rs;
??private?String?host=“localhost“;
??private?String?user=“root“;
??private?String?pw=““;
??private?String?db=“numb1“;
??private?String?Dri=“com.mysql.jdbc.Driver“;
??private?String?url=“jdbc:mysql://“+host+“/“+db;
??public?String?getStr(String?s){
??????String?str=s;
??????try{
??????????byte?b[]=str.getBytes(“ISO-8859-1“);
??????????str=new?String(b);
??????????return?str;
??????????}
??????catch(Exception?e){return?null;}
??}
??public?String?gb2iso(String?qs){?
??????try{?
??????????if?(qs?==?null)?return?“NULL“;?
??????????else?return?new?String(qs.getBytes(“gb2312“)“iso-8859-1“);?
??????}?
??????catch(Exception?e){?
??????????System.out.print(“gb2iso?error:“+e.getMessage());?
??????}?
??????return?“NULL“;?
??}?
??public?void?close(){//關閉連接
??????try{
??????????if(rs!=null)rs.close();
??????}catch(Exception?e){
??????????System.out.print(“rs“+e.getMessage());
??????}
??????try{
??????????if(st!=null)st.close();
??????}catch(Exception?e){
??????????System.out.print(“st“+e.getMessage());
??????}
??????try{
??????????if(con!=null)con.close();
??????}catch(Exception?e){
??????????System.out.print(“con“+e.getMessage());
??????}
??}
??public?ResultSet?query(String?sql)throws?Exception{
??????try{
??????????Class.forName(Dri).newInstance();
??????????con=DriverManager.getConnection(urluserpw);
??????????st=con.createStatement();
??????????rs=st.executeQuery(sql);
??????????return?rs;
??????}catch(SQLException?e){
?????????System.out.print(e.getMessage());
?????????return?null;
??????}
??}
??public?void??update(String?sql)throws?Exception{
??????try{
??????????Class.forName(Dri).newInstance();
??????????con=DriverManager.getConnection(urluserpw);
??????????st=con.createStatement();
??????????st.executeUpdate(sql);
??????????st.close();
??????????con.close();
??????}catch(SQLException?e){
??????????System.out.print(e.getMessage());
??????}
??}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????11342??2013-12-20?17:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\aboutuser.jsp
?????文件???????1796??2013-12-20?16:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\actboardset.jsp
?????文件???????2489??2013-12-20?12:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\acteditmast.jsp
?????文件???????2487??2013-12-20?16:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\acteditslave.jsp
?????文件????????984??2013-12-20?17:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\actface.jsp
?????文件???????2459??2013-12-20?10:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\action.jsp
?????文件???????1743??2013-12-20?16:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\actmodify.jsp
?????文件???????2808??2013-12-20?13:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\actreg.jsp
?????文件???????3250??2013-12-20?18:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\actreply.jsp
?????文件???????1922??2013-12-20?10:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\addblack.jsp
?????文件???????1918??2013-12-20?11:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\addfriend.jsp
?????文件???????1463??2013-12-20?16:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\addlock.jsp
?????文件???????2512??2013-12-20?10:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\addrecom.jsp
?????文件???????2485??2013-12-20?12:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\addsuper.jsp
?????文件???????2489??2013-12-20?19:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\addup.jsp
?????文件???????1123??2013-12-20?19:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\delfriend.jsp
?????文件???????1289??2013-12-20?16:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\dellock.jsp
?????文件???????1580??2013-12-20?09:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\delmaster.jsp
?????文件???????1263??2013-12-20?13:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\delmember.jsp
?????文件???????1416??2013-12-20?10:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\delrecom.jsp
?????文件???????1609??2013-12-20?15:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\delslave.jsp
?????文件???????1407??2013-12-20?13:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\delsuper.jsp
?????文件???????1334??2013-12-20?17:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\delup.jsp
?????文件???????2453??2013-12-20?11:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\action\move.jsp
?????文件???????2097??2013-12-20?10:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\admin\actaddmast.jsp
?????文件???????2736??2013-12-20?09:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\admin\actadminmast.jsp
?????文件???????1903??2013-12-20?17:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\admin\actchangeroot.jsp
?????文件???????1722??2013-12-20?17:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\admin\actcreateboard.jsp
?????文件???????2952??2013-12-20?11:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\admin\addmast.jsp
?????文件???????3792??2013-12-20?09:01??JSP基于WEB網上論壇設計與實現(源代碼+論文+開題報告+答辯PPT+外文翻譯)\liangchichang論文\bbs\admin\admin.jsp
............此處省略161個文件信息
評論
共有 條評論