📄 articleform.java
字号:
package com.opensource.blog.web.form;
import javax.servlet.http.*;
import org.apache.struts.action.*;
import org.apache.commons.lang.*;
import com.opensource.blog.comm.*;
public class ArticleForm
extends ActionForm {
private String action;
private String artkey;
private long artid;
private int blogsortid;
private String content;
private int contentsize;
private int face;
private int faceplace;
private int ishide;
private int opencomment;
private int postmonth;
private long sortid;
private String title;
private int usesign;
private int year;
private int day;
private int hour;
private int min;
private int sec;
public String getAction() {
return action;
}
public long getArtid() {
return artid;
}
public String getArtkey() {
return artkey;
}
public int getBlogsortid() {
return blogsortid;
}
public String getContent() {
return content;
}
public int getContentsize() {
return contentsize;
}
public int getDay() {
return day;
}
public int getFace() {
return face;
}
public int getFaceplace() {
return faceplace;
}
public int getHour() {
return hour;
}
public int getMin() {
return min;
}
public int getIshide() {
return ishide;
}
public int getOpencomment() {
return opencomment;
}
public int getPostmonth() {
return postmonth;
}
public int getSec() {
return sec;
}
public long getSortid() {
return sortid;
}
public String getTitle() {
return title;
}
public int getUsesign() {
return usesign;
}
public int getYear() {
return year;
}
public void setAction(String action) {
this.action = action;
}
public void setArtid(long artid) {
this.artid = artid;
}
public void setArtkey(String artkey) {
this.artkey = artkey;
}
public void setBlogsortid(int blogsortid) {
this.blogsortid = blogsortid;
}
public void setContent(String content) {
this.content = content;
}
public void setContentsize(int contentsize) {
this.contentsize = contentsize;
}
public void setDay(int day) {
this.day = day;
}
public void setFace(int face) {
this.face = face;
}
public void setFaceplace(int faceplace) {
this.faceplace = faceplace;
}
public void setHour(int hour) {
this.hour = hour;
}
public void setIshide(int ishide) {
this.ishide = ishide;
}
public void setMin(int min) {
this.min = min;
}
public void setOpencomment(int opencomment) {
this.opencomment = opencomment;
}
public void setPostmonth(int postmonth) {
this.postmonth = postmonth;
}
public void setSec(int sec) {
this.sec = sec;
}
public void setSortid(long sortid) {
this.sortid = sortid;
}
public void setTitle(String title) {
this.title = title;
}
public void setUsesign(int usesign) {
this.usesign = usesign;
}
public void setYear(int year) {
this.year = year;
}
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
ActionErrors errors = new ActionErrors();
httpServletRequest.setAttribute("leftrigthValues", Constant.LEFTORRIGHTS);
httpServletRequest.setAttribute("yesornoValues", Constant.YESORNOS);
httpServletRequest.setAttribute("sortValues", Constant.SORTS);
httpServletRequest.setAttribute("yearValues", Constant.YEARS);
httpServletRequest.setAttribute("monthValues", Constant.MONTHS);
httpServletRequest.setAttribute("dayValues", Constant.DAYS);
httpServletRequest.setAttribute("hourValues", Constant.HOURS);
httpServletRequest.setAttribute("minValues", Constant.MINSECS);
httpServletRequest.setAttribute("secValues", Constant.MINSECS);
if (StringUtils.isBlank(this.action)) {
this.action = "new";
}
return errors;
}
public void reset(ActionMapping actionMapping, HttpServletRequest servletRequest) {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -