to add some row data into a table, affter submmiting the button i have to show the details(data) in the next page of that regarding table. when i am using RequestDispather
class i am getting the java.lang.IllegalStateException:
........ it was also comming while using response.sendRedirect("View.jsp");
..... i am sending the code what i used in my page.
if(msg.equals("Values Added")){
RequestDispatcher rd = request.getRequestDispatcher("View.jsp");
rd.forward(request, response);
}
(OR)
if(msg.equals("Values Added")){
response.sendRedirect("View.jsp");
}