The final mock examin in hf question #56 says ("xyz") is a valid argument to getServletContext().getRequestDispatcher(). This directly contradicts p. 204, where a 'handwritten' note says you must provide an absolute path to the page. The mock question says that a relative path is appropriate here or something like that. What is the underlying theory?
On a related note, if a relative path is relative to the location of the request, and if the request is being dispatched from a servlet, how could you have a 'result.jsp' in the SAME directory?
It is like this : only the dispatcher obtained from the ServletRequest can accept accept a relative path, that means you may use the paths which are not starting with "\". If you use the ServletContext you must use paths which are stating whit "\".