⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 employeeform.java

📁 系统项目的一部分 开发工具:JBuilder X. 数据库:mysql. 数据库名:user. 两张表:(1)employee,(2)department
💻 JAVA
字号:
package com.jspdev.ch17;import org.apache.struts.action.*;import javax.servlet.http.*;public class EmployeeForm extends ActionForm {  private Employee employee=new Employee();  public void setName(String name)  {    this.employee.setName(name);  }  public String getName()  {    return this.employee.getName();  }  public void setId(String id){  this.employee.setId(id);}public String getId(){  return this.employee.getId();}public void setSalary(float salary){  this.employee.setSalary(salary);}public float getSalary(){  return this.employee.getSalary();}public void setAge(int age){  this.employee.setAge(age);}public int getAge(){  return this.employee.getAge();}public void setDepartment(String department){  this.employee.setDepartment(department);}public String getDepartment(){  return this.employee.getDepartment();} public void setEmployee(Employee employee) {            this.employee=employee; } public Employee getEmployee() {            return this.employee; }  public void reset(ActionMapping mapping, HttpServletRequest request) {      this.employee=new Employee();  }  public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {    /**@todo: finish this method, this is just the skeleton.*/    //EmployeeBean    return null;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -