コード例 #1
0
 public String add() {
   if (obAddInfo.getFirstname().equals("")
       || obAddInfo.getLastname().equals("")
       || obAddInfo.getGender().equals("")
       || obAddInfo.getAge().equals("")
       || obAddInfo.getAddress().equals("")) {
     addActionError("Please enter all valuees");
     return ERROR;
   } else {
     System.out.println(getId1());
     obDao.add(obAddInfo);
     System.out.println("Successdsifjsdf");
     return SUCCESS;
   }
 }
コード例 #2
0
 public String delete() {
   System.out.println("Id : " + getId1());
   obDao.delete(getId1());
   System.out.println("Delete Success");
   return SUCCESS;
 }
コード例 #3
0
 @Override
 public String execute() throws Exception {
   this.infoList = obDao.list1();
   return SUCCESS;
 }