DemoActionForm.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:1k
源码类别:
Java编程
开发平台:
Java
- package demostrcuts;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- public class DemoActionForm extends ActionForm {
- private String 单位;
- private String 地址;
- private String 姓名;
- public String get单位() {
- return 单位;
- }
- public void set单位(String 单位) {
- this.单位 = 单位;
- }
- public String get地址() {
- return 地址;
- }
- public void set地址(String 地址) {
- this.地址 = 地址;
- }
- public String get姓名() {
- return 姓名;
- }
- public void set姓名(String 姓名) {
- this.姓名 = 姓名;
- }
- public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
- /**@todo: finish this method, this is just the skeleton.*/
- return null;
- }
- public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
- }
- }