留言板源代码:jsp留言板源代码4来源: 发布时间:星期四, 2009年2月12日 浏览:152次 评论:0
jsp留言板源代码4 其中 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() package ymbean; import java.sql.*; import java.util.*; import java.text.*; import com.chinazjj.sql.dsql; import com.chinazjj.util.dutil; //其他 ![]() ![]() ![]() ![]() 单 public ![]() private String inquire_value=\"\",inquire_item=\"\",disptype=\"\",inqtyp e=\"\"; private String inquire_num=\"\",inquire_addr=\"\",inquire_name=\"\"; private dutil ldutil= ![]() ![]() public opDb ![]() } public void ![]() ;} public void ![]() il.chineseToUnicode(name);} public void ![]() public void ![]() public void ![]() hineseToUnicode(name);} public void ![]() .chineseToUnicode(name);} public void ![]() .chineseToUnicode(name);} public String getinquire_dndata ![]() { ![]() } public ResultSet executeQuery(String sql) { ResultSet rs = null; Statement lstmt = null; try { lstmt = connectdb ![]() rs = lstmt.executeQuery(sql); ![]() ![]() } catch(SQLException ex) { ![]() ![]() ex.getMessage ![]() ![]() } public Statement getStmt ![]() { Statement lstmt = null; lstmt = connectdb ![]() ![]() } public String executeUpdate(String sql) { ResultSet rs = null; Statement lstmt = null; try { lstmt = connectdb ![]() lstmt.executeUpdate(sql); ![]() ![]() lstmt.executeUpdate(\"commit\"); } catch(SQLException ex) { ![]() ![]() x.getMessage ![]() ![]() ![]() } ![]() } public Statement connectdb ![]() { Statement lstmt=null; Connection conn=null; final String connect_ ![]() 0.1:1521:clubdb\"; final String driver_ ![]() dsql mysql= ![]() ![]() lstmt=mysql.dconnectdb(driver_ ![]() ![]() ![]() } public Statement connectdb(String connect_ ![]() { Statement lstmt=null; Connection conn=null; final String driver_ ![]() dsql mysql= ![]() ![]() lstmt=mysql.dconnectdb(driver_ ![]() ![]() ![]() } // ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() public String getCurrentDate(String ldateform) { ![]() ![]() ![]() ))); } // ![]() ![]() ![]() ![]() \" ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() //去掉奇怪 ![]() public String removeComment(String Content){ String makeContent= ![]() ![]() StringTokenizer strToken= ![]() String tempToken=null; while(strToken.hasMoreTokens ![]() tempToken=strToken.nextToken ![]() ![]() makeContent=makeContent+tempToken+\" \"; } ![]() } //将/n转换成为回车 public String addBr(String Content){ String makeContent= ![]() ![]() StringTokenizer strToken= ![]() while(strToken.hasMoreTokens ![]() makeContent=makeContent+\" \"+strToken.nextToken ![]() } ![]() } //将 转换成为回车/n public String addCr(String Content){ String makeContent= ![]() ![]() StringTokenizer strToken= ![]() \"); while(strToken.hasMoreTokens ![]() makeContent=makeContent+\" \"+strToken.nextToken ![]() } ![]() } // ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() public boolean getIdent ![]() { try { String sql=\"select * from club_users where username=\" + name1 + \" and password=\" + pwd1 + \"\"; ResultSet rs = executeQuery(sql); ![]() ![]() ![]() ![]() ![]() ![]() ![]() }catch (Exception e) { ![]() } public void counts(String pagename) { executeUpdate(\"update call_count ![]() e=\"+pagename+\"\"); } // ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() public String getDeptSuper(String vp) //取版主 { String vst=\"未知\"; try{ String sql=\"select administrator from club_cvcdept where deptno= \"+vp+\"\"; ResultSet rs = executeQuery(sql); ![]() ![]() rs.close ![]() } catch (Exception e) {} ![]() } public String getDeptName(String vp) //取版名 { String vst=\"未知\"; try{ String sql=\"select deptnote from club_cvcdept where deptno=\"+vp +\"\"; ResultSet rs = executeQuery(sql); ![]() ![]() rs.close ![]() } catch (Exception e) {} ![]() } public String getUserEmail(String vp) //取社区用户email { String vst=\"未知\"; try{ String sql=\"select email from club_users where username=\"+vp+\" \"; ResultSet rs = executeQuery(sql); ![]() ![]() rs.close ![]() } catch (Exception e) {} ![]() } public Object getaValue(String vp) //取社区用户email及其他 { Object vst=null; try{ String sql=vp; ResultSet rs = executeQuery(sql); ![]() ![]() rs.close ![]() } catch (Exception e) {} ![]() } public String getsValue(String vp) //取社区用户email及其他 { String vst=\"\"; try{ String sql=vp; ResultSet rs = executeQuery(sql); ![]() ![]() rs.close ![]() } catch (Exception e) {} ![]() } }//end opDb.java 1
相关文章读者评论发表评论 |
|