📄 newsform.java
字号:
package users;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import javax.servlet.http.HttpServletRequest;
public class newsForm extends ActionForm {
private String author;
private String content;
private String time;
private String topic;
public String getAuthor() {
return author;
}
public void setAuthor(String author) {
this.author = author;
}
public void setTopic(String topic) {
this.topic = topic;
}
public void setTime(String time) {
this.time = time;
}
public void setContent(String content) {
this.content = content;
}
public String getContent() {
return content;
}
public String getTime() {
return time;
}
public String getTopic() {
return topic;
}
public ActionErrors validate(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
/** @todo: finish this method, this is just the skeleton.*/
return null;
}
public void reset(ActionMapping actionMapping,
HttpServletRequest servletRequest) {
try{
servletRequest.setCharacterEncoding("gb2312");
}catch(Exception e){}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -