Hello Everybody,
Is anybody successfully using the RequestDispatcher.forward() method with
Tomcat to pass control from a servlet to a jsp? I am having nothing but
problems. There are 3 ways that I know of to obtain a RequestDispatcher
object for a resource, in this case, a jsp file:
(1) Using ServletContext.getRequestDispatcher(file.jsp): This returns
NULL for me, even with the full url.
(2) request.getRequestDispatcher(file.jsp): This returns an object, but
the object wants to treat file.jsp as a servlet instead of a
jsp file. It wants to find a class file for file.jsp in the servlet
directory.
(3) ServletContext.getNamedDispatcher(file.jsp): This method gets a "Null
Pointer Exception" error.
Would greatly appreciate any suggestions.
Thanks in advance,
Larry
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets