I have two
servlets which communicate to different JSPs. One works as expected, the other does not work at all.
Originally both servlets used getServletContext().setAttribute("inputValue",inPutObj); and the JSPs did a <%=getServletContext().getAttribute("inputValue")%> and both of them worked except that all users received the same value for "inputValue".
To get around this problem, I changed both servlets to use request.setAttribute("inputValue",inPutObj) and changed both JSPs to use <%=request.getAttribute("inputValue")%>, only one of the servlet/jsp pairs works.
The one that does not work is called directly by the servlet name, and only sends data to a
JSP in an error situation. The one that does work, is called via a "POST" from an HTML page.
By not working, the JSP shows the
word null where it should show my error code. Per my logging, a valid value is placed in inPutObj but does not get to the error.jsp file.
Any help would be appreciated.