AddLinksForm.java
资源名称:Myblog.rar [点击查看]
上传用户:wlfwy2004
上传日期:2016-12-12
资源大小:33978k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
Java
- package com.opensource.blog.web.form;
- import javax.servlet.http.*;
- import org.apache.commons.lang.*;
- import org.apache.struts.action.*;
- public class AddLinksForm
- extends ActionForm {
- private String action;
- private String linkimgsrc;
- private String linktext;
- private int linktype;
- private String linkurl;
- private long id;
- public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
- ActionErrors errors = new ActionErrors();
- if (StringUtils.isBlank(this.action)) {
- this.action = "show";
- }
- return errors;
- }
- public void reset(ActionMapping actionMapping, HttpServletRequest servletRequest) {
- }
- public String getAction() {
- return action;
- }
- public long getId() {
- return id;
- }
- public String getLinkimgsrc() {
- return linkimgsrc;
- }
- public String getLinktext() {
- return linktext;
- }
- public int getLinktype() {
- return linktype;
- }
- public String getLinkurl() {
- return linkurl;
- }
- public void setAction(String action) {
- this.action = action;
- }
- public void setId(long id) {
- this.id = id;
- }
- public void setLinkimgsrc(String linkimgsrc) {
- this.linkimgsrc = linkimgsrc;
- }
- public void setLinktext(String linktext) {
- this.linktext = linktext;
- }
- public void setLinktype(int linktype) {
- this.linktype = linktype;
- }
- public void setLinkurl(String linkurl) {
- this.linkurl = linkurl;
- }
- }