Why will this NOT validate correctly in my IF Statement? Basically, a user chooses an option from the drop down list. The value is passed to t.jsp (itself) and if the option "All" is chosen, then it does something. If any of the years are chosen, then it does something else.
if(selectedValue == "All")
yearq = "new statement '" + selectedValue + "' ";
out.println("IF not ALL, then " + yearq);
selectedValue = "20%";
yearq = "";
out.println("IF ALL, Then Selected Value is: " + selectedValue);