Redirecting and send parameter to JSP page from servlet
843842Jan 19 2009 — edited Jan 19 2009Hi All,
How can I redirecting to a JSP page and also sending a paramter to it from a servlet. I want to display the paramtere on the redirected JSP page. I try the below code but it display null
In servlet :
request.setAttribute("result", result);
RequestDispatcher rd = request.getRequestDispatcher("highlight.jsp");
rd.forward(request, response);
In jsp:
<%=session.getAttribute("result")