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;
}
}
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;
}
}
作者:tfy1332 发表于2013-2-22 23:44:27 原文链接
阅读:100 评论:0 查看评论