cedric      01/10/08 06:46:15

  Added:       contrib/tiles/src/share/org/apache/struts/tiles
                        NoOpAction.java
  Log:
  Action doing nothing. Usefull to provide an Url-action entry to a definition.
  
  Revision  Changes    Path
  1.1                  
jakarta-struts/contrib/tiles/src/share/org/apache/struts/tiles/NoOpAction.java
  
  Index: NoOpAction.java
  ===================================================================
  /*
   */
  
  
  package org.apache.struts.tiles;
  
  
  import java.io.IOException;
  import java.util.Locale;
  import java.util.Vector;
  import javax.servlet.RequestDispatcher;
  import javax.servlet.ServletException;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpSession;
  import javax.servlet.http.HttpServletResponse;
  import org.apache.struts.action.Action;
  import org.apache.struts.action.ActionForm;
  import org.apache.struts.action.ActionForward;
  import org.apache.struts.action.ActionMapping;
  import org.apache.struts.action.ActionServlet;
  import org.apache.struts.util.MessageResources;
  
  import org.apache.struts.util.RequestUtils;
  
  
  /**
   * Implementation of <strong>Action</strong> that populates an instance of
   * <code>SubscriptionForm</code> from the currently specified subscription.
   *
   * @author Cedric Dumoulin
   * @version $Revision: 1.1 $ $Date: 2001/10/08 13:46:15 $
   */
  
  public final class NoOpAction extends Action {
  
  
      // --------------------------------------------------------- Public Methods
  
  
      /**
       * No op action.
       * Action doing nothing.
       *
       * @param servlet The ActionServlet making this request
       * @param mapping The ActionMapping used to select this instance
       * @param actionForm The optional ActionForm bean for this request (if any)
       * @param request The HTTP request we are processing
       * @param response The HTTP response we are creating
       *
       * @exception IOException if an input/output error occurs
       * @exception ServletException if a servlet exception occurs
       */
      public ActionForward perform(
                                   ActionMapping mapping,
                                   ActionForm form,
                                   HttpServletRequest request,
                                   HttpServletResponse response)
                            throws IOException, ServletException
      {
        // No op action.
          return (mapping.findForward("success"));
      }
  
  
  }
  
  
  


Reply via email to