In the below code i m trying to send my request attribute from req.jsp page to retr.jsp.
i would like to know if we can pass request attributes from one jsp page to other jsp page
the below is my req.jsp
<html> <head> hey i m page 1 </head> <body> <% request.setAttribute("info from page1", info); %> <% RequestDispatcher dispatch=request.getRequestDispatcher("/retr.jsp"); dispatch.forward(request,response); %> </body> </html>
this is my retr.jsp
<html> <head> i m gettin request from page1 </head> <body> <%=request.getAttribute("info")%> </body> </html>