📄 registerform.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.yourcompany.struts.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: 08-20-2008
*
* XDoclet definition:
* @struts.form name="registerForm"
*/
public class RegisterForm extends ActionForm {
/*
* Generated fields
*/
/** password property */
private String password;
/** month property */
private String month;
/** gender property */
private String gender;
/** nickname property */
private String nickname;
/** day property */
private String day;
/** address property */
private String address;
/** answer property */
private String answer;
/** mail property */
private String mail;
/** year property */
private String year;
/** firstname property */
private String firstname;
/** username property */
private String username;
/** qq property */
private String qq;
/** question property */
private String question;
/** post property */
private String post;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
try
{
request.setCharacterEncoding("gbk");
request.getContentType();
}
catch(Exception e)
{
}
return null;
}
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
try
{
request.setCharacterEncoding("gbk");
request.getContentType();
}
catch(Exception e)
{
}
}
/**
* Returns the password.
* @return String
*/
public String getPassword() {
return password;
}
/**
* Set the password.
* @param password The password to set
*/
public void setPassword(String password) {
this.password = password;
}
/**
* Returns the month.
* @return String
*/
public String getMonth() {
return month;
}
/**
* Set the month.
* @param month The month to set
*/
public void setMonth(String month) {
this.month = month;
}
/**
* Returns the gender.
* @return String
*/
public String getGender() {
return gender;
}
/**
* Set the gender.
* @param gender The gender to set
*/
public void setGender(String gender) {
this.gender = gender;
}
/**
* Returns the nickname.
* @return String
*/
public String getNickname() {
return nickname;
}
/**
* Set the nickname.
* @param nickname The nickname to set
*/
public void setNickname(String nickname) {
this.nickname = nickname;
}
/**
* Returns the day.
* @return String
*/
public String getDay() {
return day;
}
/**
* Set the day.
* @param day The day to set
*/
public void setDay(String day) {
this.day = day;
}
/**
* Returns the address.
* @return String
*/
public String getAddress() {
return address;
}
/**
* Set the address.
* @param address The address to set
*/
public void setAddress(String address) {
this.address = address;
}
/**
* Returns the answer.
* @return String
*/
public String getAnswer() {
return answer;
}
/**
* Set the answer.
* @param answer The answer to set
*/
public void setAnswer(String answer) {
this.answer = answer;
}
/**
* Returns the mail.
* @return String
*/
public String getMail() {
return mail;
}
/**
* Set the mail.
* @param mail The mail to set
*/
public void setMail(String mail) {
this.mail = mail;
}
/**
* Returns the year.
* @return String
*/
public String getYear() {
return year;
}
/**
* Set the year.
* @param year The year to set
*/
public void setYear(String year) {
this.year = year;
}
/**
* Returns the firstname.
* @return String
*/
public String getFirstname() {
return firstname;
}
/**
* Set the firstname.
* @param firstname The firstname to set
*/
public void setFirstname(String firstname) {
this.firstname = firstname;
}
/**
* Returns the username.
* @return String
*/
public String getUsername() {
return username;
}
/**
* Set the username.
* @param username The username to set
*/
public void setUsername(String username) {
this.username = username;
}
/**
* Returns the qq.
* @return String
*/
public String getQq() {
return qq;
}
/**
* Set the qq.
* @param qq The qq to set
*/
public void setQq(String qq) {
this.qq = qq;
}
/**
* Returns the question.
* @return String
*/
public String getQuestion() {
return question;
}
/**
* Set the question.
* @param question The question to set
*/
public void setQuestion(String question) {
this.question = question;
}
/**
* Returns the post.
* @return String
*/
public String getPost() {
return post;
}
/**
* Set the post.
* @param post The post to set
*/
public void setPost(String post) {
this.post = post;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -