Example #1
0
  /**
   * Process a forward requested by this mapping (if any). Return <code>true</code> if standard
   * processing should continue, or <code>false</code> if we have already handled this request.
   *
   * @param request The servlet request we are processing
   * @param response The servlet response we are creating
   * @param mapping The ActionMapping we are using
   * @return <code>true</code> to continue normal processing; <code>false</code> if a response has
   *     been created.
   * @throws IOException if an input/output error occurs
   * @throws ServletException if a servlet exception occurs
   */
  protected boolean processForward(
      HttpServletRequest request, HttpServletResponse response, ActionMapping mapping)
      throws IOException, ServletException {
    // Are we going to processing this request?
    String forward = mapping.getForward();

    if (forward == null) {
      return (true);
    }

    internalModuleRelativeForward(forward, request, response);

    return (false);
  }