I am using jsp and in result of query i have have row whose value is NULL in mysql database
i want to replace with N/A
String check1=null;
while (rs.next())
{
check1=rs.getString("l.country");
if(check1.equals(null))
{
check1="N/A";
}
outfile.write("rs.getString(check1)");
}
but i “N/A” is not display
Please tell me where i have made the mistake.
You can handle this in your SQL query you know. Example