⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 artpostform.java

📁 前台:文章浏览、发表留言、Game、Music 后台:文章相关:发表文章、修改文章、删除文章、批量移动文章 栏目相关:增加栏目、修改栏目、删除栏目、栏目链接、栏目排序系统栏目分为系统内部栏目和外部栏目
💻 JAVA
字号:
package com.yhcms.manage.article.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;
/**
 * <p>Title:系统后台发表文章Form</p>
 * <li>发表文章模块</li>
 * <br><b>CopyRight: yyhweb[由由华网]</b>
 * @author stephen
 * @version YH-2.0
 */
public class ArtPostForm extends ActionForm{

	private static final long serialVersionUID = 1L;
	private int artId = 0;
	private int bigclassid = 0;
	private String ftitle = "";
	private String stitle = "";
	private String comefrom = "";
	private String author = "";
	private String editor = "";
	private String content = "";
	private String fip = "";
	private String ftime = "";
	private String action = "";

	public int getArtId() {
		return artId;
	}
	public void setArtId(int artId) {
		this.artId = artId;
	}
	public int getBigclassid(){
		return bigclassid;
	}
	public void setBigclassid(int bigclassid){
		this.bigclassid = bigclassid;
	}
	
	public String getFtitle(){
		return ftitle;
	}
	public void setFtitle(String ftitle){
		this.ftitle = ftitle.trim();
	}
	
	public String getStitle(){
		return stitle;
	}
	public void setStitle(String stitle){
		this.stitle = stitle.trim();
	}
	
	public String getComefrom(){
		return comefrom;
	}
	public void setComefrom(String comefrom){
		this.comefrom = comefrom.trim();
	}
	
	public String getAuthor(){
		return author;
	}
	public void setAuthor(String author){
		this.author = author.trim();
	}
	
	public String getEditor(){
		return editor;
	}
	public void setEditor(String editor){
		this.editor = editor.trim();
	}
	
	public String getContent(){
		return content;
	}
	public void setContent(String content){
		this.content = content.trim();
	}
	
	public String getFip() {
		return fip;
	}
	public void setFip(String fip) {
		this.fip = fip.trim();
	}
	
	public String getFtime() {
		return ftime;
	}
	public void setFtime(String ftime) {
		this.ftime = ftime.trim();
	}
	
	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}
	
	public ActionErrors validate(ActionMapping actionmapping,HttpServletRequest request){
			ActionErrors errors = new ActionErrors();
		if(ftitle==null||ftitle.length()<1||ftitle.equals(""))
			errors.add("post.ftitle.empty",new ActionMessage("post.ftitle.empty"));
		if(content==null||content.length()<1||content.equals(""))
			errors.add("post.content.empty",new ActionMessage("post.content.empty"));
		if(stitle==null)
			stitle = "";
		if(comefrom==null)
			comefrom = "";
		if(comefrom==null)
			comefrom = "";
		
		return errors;
	}
	
	public void reset(ActionMapping actionmapping,HttpServletRequest request){
		artId = 0;
		bigclassid = 0;
		ftitle = "";
		stitle = "";
		comefrom = "";
		author = "";
		editor = "";
		content = "";
		fip = "";
		ftime = "";
		action = "";
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -