当前位置: 代码迷 >> 综合 >> 2.Struts的action input=/action:ActionForm
  详细解决方案

2.Struts的action input=/action:ActionForm

热度:63   发布时间:2024-01-17 02:57:02.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;}}

  相关解决方案