Given: 1. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/ jstl/core" %> 2. <%@ taglib prefix="tables" uri="http://www.javaranch. com/tables" %> 3. <%@ taglib prefix="jsp" tagdir="/WEB-INF/tags" %> 4. <%@ taglib uri="UtilityFunctions" prefix="util" %> What about the above taglib directives would cause the JSP to not function? A. Line 4 is wrong because the prefix attribute must come before the uri attribute. B. Line 3 is wrong because there is no uri attribute. C. Line 4 is wrong because the uri value must begin with http:// D. Line 3 is wrong because the prefix jsp is reserved for standard actions.
Correct answer: C. I think option C is wrong and right answer should be option D. Help me to find the correct answer.
The pathname specified may be relative, although it cannot extend outside the current servlet context. If the path begins with a "/" it is interpreted as relative to the current context root. This method returns null if the servlet container cannot return a RequestDispatcher.
So no, request dispatcher can only dispatch relative to the context root.