search/engine/api/src/main/java/net/sf/mmm/search/view/base/AbstractSearchServlet.java
/**
   * This method dispatches the request to the according view (by default according JSP).
   * 
   * @param request is the {@link HttpServletRequest}.
   * @param response is the {@link HttpServletResponse}.
   * @param exception - <code>true</code> if an {@link Exception} occurred, <code>false</code> on success.
   * @throws ServletException if something goes wrong.
   * @throws IOException if something goes wrong.
   */
This method dispatches the request to the according view (by default according JSP).

@param request is the  HttpServletRequest.
@param response is the  HttpServletResponse.
@param exception - true if an  Exception occurred, false on success.
@throws ServletException if something goes wrong.
@throws IOException if something goes wrong.
This method dispatches the request to the according view ( by default according JSP ) . @param request is the HttpServletRequest . @param response is the HttpServletResponse . @param exception - true if an Exception occurred false on success . @throws ServletException if something goes wrong . @throws IOException if something goes wrong .
protected void doDispatch(HttpServletRequest request, HttpServletResponse response, boolean exception)
      throws ServletException, IOException {
    String dispatchPath = request.getServletPath();
    if (dispatchPath.endsWith("/")) {
      dispatchPath = dispatchPath.substring(0, dispatchPath.length() - 1);
    }
    dispatchPath = dispatchPath + ".jsp";
    if (exception) {
      response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
      if (this.errorPath != null) {
        dispatchPath = this.errorPath;
      }
    }
    request.getRequestDispatcher(dispatchPath).include(request, response);
  }
protected void doDispatch ( HttpServletRequest request , HttpServletResponse response , boolean exception ) throws ServletException , IOException { String dispatchPath = request . getServletPath ( ) ; if ( dispatchPath . endsWith ( "/" ) ) { dispatchPath = dispatchPath . substring ( 0 , dispatchPath . length ( ) - 1 ) ; } dispatchPath = dispatchPath + ".jsp" ; if ( exception ) { response . setStatus ( HttpServletResponse . SC_INTERNAL_SERVER_ERROR ) ; if ( this . errorPath != null ) { dispatchPath = this . errorPath ; } } request . getRequestDispatcher ( dispatchPath ) . include ( request , response ) ; }
This method dispatches the request to the according view (by default according JSP).
This method dispatches the request to the according view ( by default according JSP ) .