schoolshipreplyform.java
来自「java web开发技术方案宝典」· Java 代码 · 共 78 行
JAVA
78 行
package com.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
public class SchoolShipReplyForm extends ActionForm {
private Integer id;
private SchoolShipTopicForm tbSchoolShipTopic;
private String content;
private String replyTime;
private String replyUser;
public SchoolShipReplyForm() {
}
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getContent() {
return this.content;
}
public void setContent(String content) {
this.content = content;
}
public String getReplyTime() {
return this.replyTime;
}
public void setReplyTime(String replyTime) {
this.replyTime = replyTime;
}
public String getReplyUser() {
return this.replyUser;
}
public void setReplyUser(String replyUser) {
this.replyUser = replyUser;
}
public SchoolShipTopicForm getTbSchoolShipTopic() {
return tbSchoolShipTopic;
}
public void setTbSchoolShipTopic(SchoolShipTopicForm tbSchoolShipTopic) {
this.tbSchoolShipTopic = tbSchoolShipTopic;
}
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors actionErrors = new ActionErrors();
if (content == null || content.equals("")) {
actionErrors.add("emptyContentOther", new ActionMessage(
"emptyContentOther"));
}
return actionErrors;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?