dimanche 3 avril 2016

JSP if statement doesn't work

Hi I have two strings with the same value but when I run if(s1.equals(s2)) response is false ? why ?

<%int scor=0;%>
<%String test2=request.getParameter("radio2");%>
<%String value2=request.getParameter("hidden2");%>
<%
    if ((value2.equals(test2))) {
        scor++;
    }
%>

the value of scor is stil 0.

Aucun commentaire:

Enregistrer un commentaire