📄 replyform.java
字号:
// Created by Xslt generator for Eclipse.// XSL : not found (java.io.FileNotFoundException: (Bad file descriptor))// Default XSL used : easystruts.jar$org.easystruts.xslgen.JavaClass.xslpackage net.javafan.guestbook.form;import javax.servlet.http.HttpServletRequest;import org.apache.struts.action.ActionError;import org.apache.struts.action.ActionErrors;import org.apache.struts.action.ActionForm;import org.apache.struts.action.ActionMapping;/** * ReplyForm.java created by EasyStruts - XsltGen. * http://easystruts.sf.net * created on 09-12-2004 * * XDoclet definition: * @struts:form name="replyForm" */public class ReplyForm extends ActionForm { // --------------------------------------------------------- Instance Variables /** reply property */ private String reply; /** id property */ private String id; // --------------------------------------------------------- Methods /** * Method validate * @param ActionMapping mapping * @param HttpServletRequest request * @return ActionErrors */ public ActionErrors validate( ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = new ActionErrors(); if (reply == null || reply.trim().equals("")) { errors.add("reply", new ActionError("error.noReply")); } return errors; } /** * Method reset * @param ActionMapping mapping * @param HttpServletRequest request */ public void reset(ActionMapping mapping, HttpServletRequest request) { reply = ""; } /** * Returns the reply. * @return String */ public String getReply() { return reply; } /** * Set the reply. * @param reply The reply to set */ public void setReply(String reply) { this.reply = reply; } /** * Returns the id. * @return String */ public String getId() { return id; } /** * Set the id. * @param id The id to set */ public void setId(String id) { this.id = id; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -