0
I have an html page and it sends a form with POST method, I take the data like this:
String email = request.getParameter("user");
When I compare the email string to another string containing the same text it turns me false. Because it happens ? how can I solve ?
I’m making the normal comparison
if(email == "[email protected]"){
out.println("executou aqui");
}
In the "[email protected]" case it would be the same value as the String I picked up in the post method.
How are you comparing?
– Edjane
How are you making the comparison?
– prmottajr
if(email == "[email protected]"){ out.println("executed here"); } This text is the same as I am sending from another page via POST
– Davi Henrique