当前位置: 代码迷 >> 综合 >> Struts首例:ActionForm
  详细解决方案

Struts首例:ActionForm

热度:2   发布时间:2024-01-17 03:09:20.0
package com.bjpowernode.struts;
import org.apache.struts.action.ActionForm;
/**
* 登录ActionForm,负责表单收集数据 表单的属性必须和ActionForm中的get和set的属性一致
* 
* @author Administrator
* 
*/
@SuppressWarnings("serial")
public class LoginActionForm extends ActionForm {
private String username;
private String password;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}


 

  相关解决方案