Dear Ranchers, I'm doing a project in JSP. In this I'm passinga value string value status which is equal to 0 and later will convert that to a integer value x. When i put the condition if(x==0) then it is not printing the function.
in the beginning of your code there is an if-else statement.
If x isn't initialized (to 0) before the if-else statement and the string status doesn't equal "all" x wont have the value 0. If it doesn't have the value 0 the "program" wont enter the if(x==0) block of your code.