这是图书管理系统的课后作业 增删查改 BaseDao
jsp提交到servlet
数据库操作通用类
package ;
import .*;
import common.*;
public class BaseDao {etString(\"driver\");
url=().getString(\"url\");
userName=().getString(\"userName\");
password=().getString(\"password\");
}
protected ResultSet rs;
protected Statement stmt;
protected PreparedStatement ps;
,rownum rn from books b) where rn>= and rn<\";
ps=(sql);jbook/\");
}else if(count==0){jbook/\");
}
} catch (Exception e) {
();
}
}
jbook/\");
}else if(count==0){jbook/\");
}
} catch (Exception e) {
();
}
}
\" pageEncoding=\"utf-8\"%>
<%
String path = ();
String basePath = ()+\":ight{color:#92BB22;}
.wrong{color:#F80102;} #head ul{list-style:none;}
#head ul li{float:left;}
#head ul li a{text-decoration:none;}
#mytable{margin-left:300px; margin-top:50px;} .near{margin-left:10px;}
欢迎注册北大青鸟网上书城