this.publish = publish; this.price = price; this.beanId = id; }
public String getAuthor() { return author; }
public void setAuthor(String author) { this.author = author; }
public void setPublish(String publish) { this.publish = publish; }
public void setPrice(String price) { this.price = price; }
public void setBookName(String bookName) { this.bookName = bookName; }
public void setBookId(String bookId) { this.bookId = bookId; }
public String getBookId() { return bookId; }
public String getBookName() { return bookName; }
public String getPrice() { return price; }
public String getPublish() { return publish; }
public String getBeanId() { return this.beanId; }
public void setBeanId(String beanId) { this.beanId = beanId; }
public Map loadBook() { Map record = new HashMap(); record.put("column1", this.getBookId().trim()); record.put("column2", this.getBookName().trim()); record.put("column3", this.getAuthor().trim()); record.put("column4", this.getPublish().trim()); record.put("column5", this.getPrice().trim()); return record; }
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) { ActionErrors errors = new ActionErrors(); if (this.bookId == null this.bookId.equals("") this.bookId.length() < 1) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("book.bookid.error")); } if (this.bookName == null this.bookName.equals("")
上一篇:JBuilder2005实战JSP之特殊页面
下一篇:JSP数据库操作例程
|