I have a html page and it sends a form with method POST type, I get the data like this:
String email = request.getParameter("user");
When I compare the email string with another string containing the same text it makes me false. Why does this happen? how can I solve it?
I'm doing the normal comparison
if(email == "[email protected]"){
out.println("executou aqui");
}
In the case "[email protected]" would be the same value as the String I got in the post method.