Hi..
I have a basic
JAVA problem..can anyone help on this.
I have a constant declared in a ASMConstanta.java
public static
String HISTORICAL = "historical";
In another java class..i need to compare 2 strings..
String statusType = req.getParameter("historical"); //this vale comes from
JSP hidden parameter and the value of statusType is historical
Now I want to compare with constant vale.. and I am doing like this..
if(statusType.equals( ASMConstants.HISTORICAL)){
statusType = ASMConstants.CURRENT;
}
Problem is both the values are historical�but it is not entering to if condition..any suggestions