I am trying to forward a request from a servlet to a JSP.
To pass information from the servlet to the JSP page, I use request.setAttribute(String, String) in the servlet.
To call the JSP page I do:
getServletConfig().getServletContext().getRequestDispatcher(<jsp page>).forward(request, response);
But the JSP fails with the following error:
----------------------------------------------
500 Internal Server Error
com.livesoftware.jsp.JSPServlet:
java.lang.NullPointerException:
----------------------------------------------
In the JSP page I have expressions like <%=request.getAttribute(String, String)%>.
I also simply tried to call the JSP page from the browser, that also gives the same problem if I use <%=request.getAttribute(String, String)%> in the JSP page.
(Incidentally if I do a redirect() to the JSP page passing a query string, it works correctly (of course, in the JSP I then use <%=request.getParameter(String, String)%> )
I am using JRun 2.3.3 on Win NT 4.0 server.
Any idea what I am doing wrong ?
Thanks in advance for any pointers.
- Ramakrishnan Venkataraman
Email: [EMAIL PROTECTED]
