addlinkform.java
来自「煤矿安全实时监控系统(简单新闻发布系统) 主页上的登陆是ajax的」· Java 代码 · 共 96 行
JAVA
96 行
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package admin.link;
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;
/**
* MyEclipse Struts
* Creation date: 07-24-2008
*
* XDoclet definition:
* @struts.form name="link"
*/
public class AddLinkForm extends ActionForm {
/*
* Generated fields
*/
/** title property */
private String title;
/** addr property */
private String addr;
/*
* Generated Methods
*/
/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
ActionErrors errors = new ActionErrors();
if(addr.indexOf("http://")>=0)
{
return null;
}
else
{
errors.add("wu",new ActionMessage("wu"));
return errors;
}
}
/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}
/**
* Returns the title.
* @return String
*/
public String getTitle() {
return title;
}
/**
* Set the title.
* @param title The title to set
*/
public void setTitle(String title) {
this.title = title;
}
/**
* Returns the addr.
* @return String
*/
public String getAddr() {
return addr;
}
/**
* Set the addr.
* @param addr The addr to set
*/
public void setAddr(String addr) {
this.addr = addr;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?