Hi all,
I am trying to check String field if it is null or not to excute some commands.
But it is not working ... any help pls ??
String foryear = request.getParameter("foryear");
String decreeno = request.getParameter("decreeno");
I've tried to use :
if (decreeno.length() > 1)
sqlstr = sqlstr + " and decreeno='" + decreeno + "' ";
It is not working .
And when i've tried to use the follwoing :
if ( !foryear.equals( null ) )
sqlstr = sqlstr + " and foryear='" + foryear + "' ";
But I am getting Null Pionter Exeption.
Any Idea pls.