⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hyxfsearchform.java

📁 STRUTS数据库项目开发宝典
💻 JAVA
字号:
package org.helpsoft.forms;

import java.util.Collection;
import javax.servlet.http.*;
import org.helpsoft.servicelocator.*;
import org.helpsoft.session.AssociatorManageService;
import org.apache.struts.action.*;
import com.helpsoft.Constants;


/**
 * Form bean for the hyxf search page.
 *
 * @author  cao guangxin - www.relationinfo.com
 * @struts.form name="hyxfSearchForm"
 */
public final class HyxfSearchForm extends ServiceForm {
   private Collection hyxfList;

   /**
    * Gets the list of hyxf beans, set in the {@link org.helpsoft.actions.InitHyxfSearchAction}.
    * @return Collection
    */
   public Collection getHyxfList() {
      return hyxfList;
   }

   /**
    * Sets the list of hyxf beans.
    * @param hyxfList the list.
    */
   public void setHyxfList(Collection hyxfList) {
      this.hyxfList = hyxfList;
   }

   /**
    * Retrieves the list of all Hy, since Hyxf has a relation with Hy.
    *
    * @throws Exception exception
    * @return a Collection of HyData objects.
    */
   public Collection getHykhHyList() throws Exception {
      return getAssociatorManageService().getHyList();
   }

   /**
    * Performs server-side validation on the properties that have been set from this HTTP request,
    * and returns an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, returns
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    * <p>
    * <b>NOTE:</b> Please override this method and not the ValidatorForm 'validate'
    * method - any errors thrown in an overwritten 'validate' method will not be handled
    * by the GenericExceptionHandling framework.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    * @return a list with errors or <code>null</code> iIf no errors are found
    * @throws Exception - all exceptions are handled by the GenericExceptions framework
    * (no stack trace dumps shown to the user!)
    */
   public ActionErrors doValidate(ActionMapping mapping, HttpServletRequest request) throws Exception {
      boolean noValidate = (request.getParameter(Constants.SUBMIT_NO_VALIDATION) != null);
      return noValidate ? null : super.doValidate(mapping, request);
   }

}

⌨️ 快捷键说明

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