I need to recieve some data from a jsp file in java servlet,do some stuff and after that send data to another jsp.How can I do that? I tried response.sendredirect() but it's not working at all.
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//recieve some parameters from request
String c=request.getParameter("column");
//do stuff
//I need to send board which is int[][]
request.setAttribute("board",board);
RequestDispatcher rd = request.getRequestDispatcher("/redirect.jsp");
rd.forward(request, response);
}