?? writeform.java
字號:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package org.adam.struts.form;
import java.io.UnsupportedEncodingException;
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: 07-14-2008
*
* XDoclet definition:
* @struts.form name="writeForm"
*/
public class WriteForm extends ActionForm {
/*
* Generated fields
*/
/** title property */
private String title;
/** context property */
private String context;
/** sort_id property */
private String sort_id;
/*
* 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
try {
request.setCharacterEncoding("GB2312");
} catch (UnsupportedEncodingException e) {
// TODO 自動生成 catch 塊
e.printStackTrace();
}
}
/**
* Returns the title.
* @return String
*/
public String getTitle() {
return title;
}
/**
* Set the title.
* @param title The title to set
*/
public void setTitle(String title) {
this.title = title;
}
/**
* Returns the context.
* @return String
*/
public String getContext() {
return context;
}
/**
* Set the context.
* @param context The context to set
*/
public void setContext(String context) {
this.context = context;
}
/**
* Returns the sort_id.
* @return String
*/
public String getSort_id() {
return sort_id;
}
/**
* Set the sort_id.
* @param sort_id The sort_id to set
*/
public void setSort_id(String sort_id) {
this.sort_id = sort_id;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -