ServletContext.getRequestDispatcher(String url)中的url只能使用绝对路径;
而ServletRequest.getRequestDispatcher(String url)中的url可以使用相对路径。因为ServletRequest具有相对路径的概念;
而ServletContext对象无次概念。
ServletContext.getRequestDispatcher(String url)中的url只能使用绝对路径;
而ServletRequest.getRequestDispatcher(String url)中的url可以使用相对路径。因为ServletRequest具有相对路径的概念;
而ServletContext对象无次概念。