📄 teamodform.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package edu.neu.sspp.struts.form;
import java.io.IOException;
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: 06-07-2007
*
* XDoclet definition:
* @struts.form name="teaModForm"
*/
public class TeaModForm extends ActionForm {
/*
* Generated fields
*/
/** trueName property */
private String trueName;
/** email property */
private String email;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
try {
convertToUTF();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return null;
}
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}
/**
* Returns the trueName.
* @return String
*/
public String getTrueName() {
return trueName;
}
/**
* Set the trueName.
* @param trueName The trueName to set
*/
public void setTrueName(String trueName) {
this.trueName = trueName;
}
/**
* Returns the email.
* @return String
*/
public String getEmail() {
return email;
}
/**
* Set the email.
* @param email The email to set
*/
public void setEmail(String email) {
this.email = email;
}
private void convertToUTF() throws IOException {
email = new String(email.getBytes("ISO-8859-1"), "UTF-8");
trueName = new String(trueName.getBytes("ISO-8859-1"), "UTF-8");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -