I have a servlet that stores data given via parameters in a data base. If the executeUpdate() method returns 0 I want to redirect to another servlet when it returns a value > 0.
How can I do this?
Printable View
I have a servlet that stores data given via parameters in a data base. If the executeUpdate() method returns 0 I want to redirect to another servlet when it returns a value > 0.
How can I do this?
try that:
Code:RequestDispatcher dispatcher = request.getRequestDispatcher("servlet");
dispatcher.forward(request, response);