rightformbean.java

来自「教师办公管理系统」· Java 代码 · 共 53 行

JAVA
53
字号
package to.view.FormBean;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class RightFormBean extends ActionForm 
{
  private String RightName;
  private String RightExplain;

  public String getRightName()
  {
    return RightName;
  }

  public void setRightName(String RightName)
  {
    this.RightName = RightName;
  }

  public String getRightExplain()
  {
    return RightExplain;
  }

  public void setRightExplain(String RightExplain)
  {
    this.RightExplain = RightExplain;
  }

  public void reset(ActionMapping mapping, HttpServletRequest request)
  {
  }

  public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)
  {
//    String RightName=request.getParameter("RightName");
//    if(RightName==null||RightName.length()<1)
//    {
//      mapping.findForward("Error.jsp");
//    }
//    if(this.RightName==null||this.RightName.length()<1)
//    {
//      mapping.findForward("Error.jsp");
//    }
//    if(this.RightExplain==null||this.RightExplain.length()<1)
//    {
//      mapping.findForward("Error.jsp");
//    }
    return null;
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?