📄 postsform.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: PostsForm.java
package com.laoer.bbscs.web.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;
import org.apache.struts.validator.ValidatorForm;
public class PostsForm extends ValidatorForm
{
private String action;
private long bid;
private short delexp;
private long ids[];
public PostsForm()
{
}
public String getAction()
{
return action;
}
public void setAction(String action)
{
this.action = action;
}
public long getBid()
{
return bid;
}
public void setBid(long bid)
{
this.bid = bid;
}
public short getDelexp()
{
return delexp;
}
public void setDelexp(short delexp)
{
this.delexp = delexp;
}
public long[] getIds()
{
return ids;
}
public void setIds(long ids[])
{
this.ids = ids;
}
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest)
{
ActionErrors errors = new ActionErrors();
if(action == null || action.length() == 0)
errors.add("error.parametererror", new ActionError("error.parametererror"));
if((action.equals("dels") || action.equals("delws") || action.equals("resume") || action.equals("auditing")) && (ids == null || ids.length == 0))
errors.add("error.parametererror", new ActionError("error.parametererror"));
return errors;
}
public void reset(ActionMapping actionmapping, HttpServletRequest httpservletrequest)
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -