public class LoginAction extends ActionSupport {

package com.tfy.actions;


import com.opensymphony.xwork2.ActionSupport;


@SuppressWarnings("serial")
public class LoginAction extends ActionSupport {
private String logonName;
private String logonPwd;
public String home(){
System.out.println("LoginAction tfy home()");

return "home";
}
public String getLogonName() {
return logonName;
}
public void setLogonName(String logonName) {
System.out.println("这个方法是获取页面元素setLogonName的值");
this.logonName = logonName;
}
public String getLogonPwd() {
return logonPwd;
}
public void setLogonPwd(String logonPwd) {
this.logonPwd = logonPwd;
}

}

你可能感兴趣的:(public class LoginAction extends ActionSupport {)