Im developing one application here i need to pass the data from servlet to JSP .How can i pass it ? i tried by request.setAttribute() but it printing as null in JSP page . how can i solve this problem?
create some session object,
for example;
you need to send the value of variable name;
session.setAttribute("name",variable name);
and get in on jsp using;
String name=(String)session.getAttribute("name");
or
for same thing you can also try this:
response.sendRedirect("JspName.jsp?name="+variablename);
get values on your jsp page using;
String name=request.getParameter("name");