?? adminboardsform.java
字號:
package com.laoer.bbscs.web.form;
import org.apache.struts.action.*;
import javax.servlet.http.*;
/**
* <p>Title: TianYi BBS</p>
* <p>Description: TianYi BBS System</p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: LAOER.COM/TIANYISOFT.NET</p>
* @author laoer
* @version 6.0
*/
public class AdminBoardsForm
extends ActionForm {
private String action;
private String assiMaster;
private short attrib1;
private short attrib10;
private short attrib2;
private short attrib3;
private short attrib4;
private short attrib5;
private short attrib6;
private short attrib7;
private short attrib8;
private short attrib9;
private long boardID;
private String boardsEName;
private String boardsName;
private String bulletin;
private String explains;
private String hideMaster;
private long id;
private String mainMaster;
private short orders;
private short useStat;
private String userCanIn;
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public String getAssiMaster() {
return assiMaster;
}
public void setAssiMaster(String assiMaster) {
this.assiMaster = assiMaster;
}
public short getAttrib1() {
return attrib1;
}
public void setAttrib1(short attrib1) {
this.attrib1 = attrib1;
}
public short getAttrib10() {
return attrib10;
}
public void setAttrib10(short attrib10) {
this.attrib10 = attrib10;
}
public short getAttrib2() {
return attrib2;
}
public void setAttrib2(short attrib2) {
this.attrib2 = attrib2;
}
public short getAttrib3() {
return attrib3;
}
public void setAttrib3(short attrib3) {
this.attrib3 = attrib3;
}
public short getAttrib4() {
return attrib4;
}
public void setAttrib4(short attrib4) {
this.attrib4 = attrib4;
}
public short getAttrib5() {
return attrib5;
}
public void setAttrib5(short attrib5) {
this.attrib5 = attrib5;
}
public short getAttrib6() {
return attrib6;
}
public void setAttrib6(short attrib6) {
this.attrib6 = attrib6;
}
public short getAttrib7() {
return attrib7;
}
public void setAttrib7(short attrib7) {
this.attrib7 = attrib7;
}
public short getAttrib8() {
return attrib8;
}
public void setAttrib8(short attrib8) {
this.attrib8 = attrib8;
}
public short getAttrib9() {
return attrib9;
}
public void setAttrib9(short attrib9) {
this.attrib9 = attrib9;
}
public long getBoardID() {
return boardID;
}
public void setBoardID(long boardID) {
this.boardID = boardID;
}
public String getBoardsEName() {
return boardsEName;
}
public void setBoardsEName(String boardsEName) {
this.boardsEName = boardsEName;
}
public String getBoardsName() {
return boardsName;
}
public void setBoardsName(String boardsName) {
this.boardsName = boardsName;
}
public String getBulletin() {
return bulletin;
}
public void setBulletin(String bulletin) {
this.bulletin = bulletin;
}
public String getExplains() {
return explains;
}
public void setExplains(String explains) {
this.explains = explains;
}
public String getHideMaster() {
return hideMaster;
}
public void setHideMaster(String hideMaster) {
this.hideMaster = hideMaster;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getMainMaster() {
return mainMaster;
}
public void setMainMaster(String mainMaster) {
this.mainMaster = mainMaster;
}
public short getOrders() {
return orders;
}
public void setOrders(short orders) {
this.orders = orders;
}
public short getUseStat() {
return useStat;
}
public void setUseStat(short useStat) {
this.useStat = useStat;
}
public String getUserCanIn() {
return userCanIn;
}
public void setUserCanIn(String userCanIn) {
this.userCanIn = userCanIn;
}
public ActionErrors validate(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
ActionErrors errors = new ActionErrors();
if (action == null || action.length() == 0) {
action = "list";
}
if (action.equals("add") || action.equals("editdo")) {
if (boardsName == null || boardsName.trim().length() == 0 || boardsEName == null ||
boardsEName.trim().length() == 0) {
errors.add("error.nullerror", new ActionError("error.nullerror"));
}
boardsName = boardsName.trim();
boardsEName = boardsEName.trim();
if (assiMaster == null) {
assiMaster = "";
}
else {
assiMaster = assiMaster.trim();
}
if (bulletin == null) {
bulletin = "";
}
else {
bulletin = bulletin.trim();
}
if (explains == null) {
explains = "";
}
else {
explains = explains.trim();
}
if (hideMaster == null) {
hideMaster = "";
}
else {
hideMaster = hideMaster.trim();
}
if (mainMaster == null) {
mainMaster = "";
}
else {
mainMaster = mainMaster.trim();
}
if (userCanIn == null) {
userCanIn = "";
}
else {
userCanIn = userCanIn.trim();
}
}
return errors;
}
public void reset(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -