regform.java
来自「一个简单的登陆系统」· Java 代码 · 共 135 行
JAVA
135 行
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.niit.struts.web.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
/**
* MyEclipse Struts
* Creation date: 04-20-2009
*
* XDoclet definition:
* @struts.form name="regForm"
*/
public class RegForm extends ActionForm
{
/*
* Generated fields
*/
/** sname property */
private String sname;
/** age property */
private Integer age;
/** sid property */
private Integer sid;
/** city property */
private String city;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request)
{
// TODO Auto-generated method stub
return null;
}
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request)
{
// TODO Auto-generated method stub
}
/**
* Returns the sname.
* @return String
*/
public String getSname()
{
return sname;
}
/**
* Set the sname.
* @param sname The sname to set
*/
public void setSname(String sname)
{
this.sname = sname;
}
/**
* Returns the age.
* @return String
*/
public Integer getAge()
{
return age;
}
/**
* Set the age.
* @param age The age to set
*/
public void setAge(Integer age)
{
this.age = age;
}
/**
* Returns the sid.
* @return Integer
*/
public Integer getSid()
{
return sid;
}
/**
* Set the sid.
* @param sid The sid to set
*/
public void setSid(Integer sid)
{
this.sid = sid;
}
/**
* Returns the city.
* @return String
*/
public String getCity()
{
return city;
}
/**
* Set the city.
* @param city The city to set
*/
public void setCity(String city)
{
this.city = city;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?