Redirect page JSP

0

When registering the "object" in a JSP, it calls a command that in the end calls another one that does the redirection to "list Objects".

    RequestDispatcher dispatcher = request.getRequestDispatcher("/controller.do?command=ListarOperacoes");
    dispatcher.forward(request, response);

Only when it returns to the JSP where it lists the "objects", in the URL is the parameters of the "object" created. And if I give an F5 (refresh) page, it does the registration again.

I need to zero the URL when it is redirected to the JSP to list.

RequestDispatcher dispatcher = request.getRequestDispatcher("/pages/cadastro/Operacoes.jsp");
    
asked by anonymous 24.06.2017 / 04:04

0 answers