资源简介
这是一个java做二手房交易系统,内有数据库脚本,采用当今主流框架技术(JSH+JavaMail+GoogleMap)对促进项目的开发有非常大的帮助
代码片段和文件信息
package wyf.zrk;
import java.util.*;
public class AddAdminBean {
private DButilDAOImpl db;
private String aname;
private String firstPwd;
private String secondPwd;
private String agender = “男“;
private String errMsg;
private InfoBean info;
public void setInfo(InfoBean info) {
this.info = info;
}
public void setDb(DButilDAOImpl db) {
this.db = db;
}
public void setAname(String aname) {
this.aname = aname;
}
public String getAname() {
return this.aname;
}
public void setFirstPwd(String firstpwd) {
this.firstPwd = firstpwd;
}
public String getFirstPwd() {
return this.firstPwd;
}
public void setSecondPwd(String secondpwd) {
this.secondPwd = secondpwd;
}
public String getSecondPwd() {
return this.secondPwd;
}
public void setAgender(String agender) {
this.agender = agender;
}
public String getAgender() {
return this.agender;
}
public void setErrMsg(String errMsg) {
this.errMsg = errMsg;
}
public String getErrMsg() {
String msg = this.errMsg;
this.errMsg = ““;
return msg;
}
public String add() {
String msg = ““;
try {
String name = new String(aname.getBytes()“ISO-8859-1“);
String hqlName = “from AdminInfo as ai where ai.a_name=‘“+name+“‘“;
List ls = db.getInfo(hqlName);
if(ls.size()!=0) {
this.errMsg = “该用户名已经存在!“;
msg = “addadmin“;
}
else {
AdminInfo ai = new AdminInfo();
ai.setA_gender(new String(this.agender.getBytes()“ISO-8859-1“));
ai.setA_level(new String(“普通“.getBytes()“ISO-8859-1“));
ai.setA_name(new String(this.aname.getBytes()“ISO-8859-1“));
ai.setA_pwd(this.firstPwd);
String ms = db.insertObj(“admininfo“ai);
if(ms.equals(“yes“)) {
msg = “info“;
info.setMsg(“恭喜您,添加成功!“);
info.setUrl(“AdminIndex.jsp“);
}
else {
msg = “addadmin“;
errMsg = “管理员添加失败!“;
}
}
}
catch(Exception e) {
e.printStackTrace();
}
return msg;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4161 2009-02-11 15:36 java二手房交易系统10\build\SecondHandHouse\AddAdmin.jsp
文件 1596 2009-02-12 20:55 java二手房交易系统10\build\SecondHandHouse\AdminIndex.jsp
文件 2901 2009-01-24 22:31 java二手房交易系统10\build\SecondHandHouse\AdminLogin.jsp
文件 3801 2009-02-15 14:57 java二手房交易系统10\build\SecondHandHouse\AdminMenu.jsp
文件 6469 2009-01-21 16:40 java二手房交易系统10\build\SecondHandHouse\AllQiuGouInfo.jsp
文件 6436 2009-01-21 16:55 java二手房交易系统10\build\SecondHandHouse\AllQiuZuInfo.jsp
文件 6415 2009-01-21 16:52 java二手房交易系统10\build\SecondHandHouse\AllRentInfo.jsp
文件 6430 2009-02-10 15:17 java二手房交易系统10\build\SecondHandHouse\AllSaleInfo.jsp
文件 10354 2009-01-21 16:11 java二手房交易系统10\build\SecondHandHouse\Index.jsp
文件 1761 2009-02-22 16:13 java二手房交易系统10\build\SecondHandHouse\Info.jsp
文件 4573 2009-02-03 21:27 java二手房交易系统10\build\SecondHandHouse\LawInfo.jsp
文件 2378 2009-02-11 22:36 java二手房交易系统10\build\SecondHandHouse\LookAdmin.jsp
文件 2623 2009-02-12 20:28 java二手房交易系统10\build\SecondHandHouse\LookAllQuestion.jsp
文件 677 2009-02-03 22:30 java二手房交易系统10\build\SecondHandHouse\LookQuestion.jsp
文件 4880 2009-02-15 14:08 java二手房交易系统10\build\SecondHandHouse\LookRentContract.jsp
文件 4720 2009-02-15 14:41 java二手房交易系统10\build\SecondHandHouse\LookSaleContract.jsp
文件 2254 2009-02-12 22:36 java二手房交易系统10\build\SecondHandHouse\LookUserApply.jsp
文件 2777 2009-02-13 13:30 java二手房交易系统10\build\SecondHandHouse\LookUserApplyDetail.jsp
文件 2453 2009-01-16 21:13 java二手房交易系统10\build\SecondHandHouse\LookUserInfo.jsp
文件 5028 2009-03-02 01:19 java二手房交易系统10\build\SecondHandHouse\Menu.jsp
文件 3747 2009-02-10 15:17 java二手房交易系统10\build\SecondHandHouse\ModifyAdminPwd.jsp
文件 5979 2009-03-04 23:31 java二手房交易系统10\build\SecondHandHouse\ModifyMyQiuGouInfo.jsp
文件 6294 2009-03-05 00:29 java二手房交易系统10\build\SecondHandHouse\ModifyMyQiuZuInfo.jsp
文件 7066 2009-03-04 23:45 java二手房交易系统10\build\SecondHandHouse\ModifyMyRentInfo.jsp
文件 6734 2009-01-21 23:44 java二手房交易系统10\build\SecondHandHouse\ModifyMySaleInfo.jsp
文件 1845 2009-02-15 14:17 java二手房交易系统10\build\SecondHandHouse\ModifyRentContract.jsp
文件 1845 2009-02-15 14:54 java二手房交易系统10\build\SecondHandHouse\ModifySaleContract.jsp
文件 3552 2009-01-24 11:09 java二手房交易系统10\build\SecondHandHouse\ModifyUserPwd.jsp
文件 4293 2009-01-21 14:02 java二手房交易系统10\build\SecondHandHouse\MsgSearch.jsp
文件 2529 2009-02-03 17:44 java二手房交易系统10\build\SecondHandHouse\MyApplyInfo.jsp
............此处省略3292个文件信息
评论
共有 条评论