/** * Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path. A RequestDispatcher * object can be used to forward a request to the resource or to include the resource in a response. The resource can be dynamic or static. * The pathname must begin with a "/" and is interpreted as relative to the current context root. Use getContext to obtain a * RequestDispatcher for resources in foreign contexts. This method returns null if the ServletContext cannot return a * RequestDispatcher. **/ public javax.servlet.RequestDispatcher getRequestDispatcher( String path ) { try { URL url = new URL( "http", "localhost", _application.getContextPath() + path ); return new RequestDispatcherImpl( _application, url ); } catch (ServletException e) { return null; } catch (MalformedURLException e) { return null; } }
/** * Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path. A RequestDispatcher * object can be used to forward a request to the resource or to include the resource in a response. The resource can be dynamic or static. * The pathname must begin with a "/" and is interpreted as relative to the current context root. Use getContext to obtain a * RequestDispatcher for resources in foreign contexts. This method returns null if the ServletContext cannot return a * RequestDispatcher. **/ public javax.servlet.RequestDispatcher getRequestDispatcher( String path ) { try { URL url = new URL( "http", "localhost", _application.getContextPath() + path ); return new RequestDispatcherImpl( _application, url ); } catch (ServletException e) { return null; } catch (MalformedURLException e) { return null; } }
/** * Returns a RequestDispatcher object that acts as a wrapper for the resource located at the given path. A RequestDispatcher * object can be used to forward a request to the resource or to include the resource in a response. The resource can be dynamic or static. * The pathname must begin with a "/" and is interpreted as relative to the current context root. Use getContext to obtain a * RequestDispatcher for resources in foreign contexts. This method returns null if the ServletContext cannot return a * RequestDispatcher. **/ public javax.servlet.RequestDispatcher getRequestDispatcher( String path ) { try { URL url = new URL( "http", "localhost", _application.getContextPath() + path ); return new RequestDispatcherImpl( _application, url ); } catch (ServletException e) { return null; } catch (MalformedURLException e) { return null; } }