0
I’m wanting to pick up what the user will type with request.getParameter
and compare with a String and if the value the user enters is equal to string, the user is redirected to the page but this is not happening.
String login = request.getParameter("login");
String senha = request.getParameter("senha");
if(login=="Felipe_Massa_10" && senha=="felipemassa1010"){
RequestDispatcher rd=request.getRequestDispatcher("/CadastroProdutos.jsp");
}