I am trying to a pass a value from a
servlet to a
jsp. I am getting null pointer exception. Error 503 Service Unavailable.
In the servlets file I send the values as:
request.setAttribute("error", "Login Failure");
request.getRequestDispatcher(address).include(request,response);
This is how is get the value in the JSP file.
<%
String error = (String)request.getAttribute("error") %>
I also tried it this way:
<% String error = (String)request.getParameter("error") %>
What could be the problem ?
Sam