📄 userinfoform.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: UserInfoForm.java
package com.laoer.bbscs.web.form;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.*;
public class UserInfoForm extends ActionForm
{
private long id;
private String t;
private String username;
public UserInfoForm()
{
}
public long getId()
{
return id;
}
public void setId(long id)
{
this.id = id;
}
public String getT()
{
return t;
}
public void setT(String t)
{
this.t = t;
}
public String getUsername()
{
return username;
}
public void setUsername(String username)
{
this.username = username;
}
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest)
{
ActionErrors errors = new ActionErrors();
if(t == null)
t = "id";
if(t.equals("id") && id == 0L)
errors.add("parametererror", new ActionError("error.parametererror"));
if(t.equals("name") && (username == null || username.length() == 0))
errors.add("parametererror", new ActionError("error.parametererror"));
return errors;
}
public void reset(ActionMapping actionmapping, HttpServletRequest httpservletrequest)
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -