chaddu1256
IS-IT--Management
<%
//to test for null values
String va5 = "";
if (request.getAttribute("meterNo"
.toString().equals("00000000"
){
va5 = "&nbsp;";
}
else{
va5 = request.getAttribute("meterNo"
.toString();
}
%>
<td><div align="center" class="sscolor1"><%= va5%>
Right now I have this code here that is checking a database table for a Meter Number, when the meter number is 00000000 then it just displays a blank, what I want to be able to do is have this statement check for 000000000 and "null" and display a blank if either is present. Is there a way to rewrite or modify this statement to check for both of these?
//to test for null values
String va5 = "";
if (request.getAttribute("meterNo"
va5 = "&nbsp;";
}
else{
va5 = request.getAttribute("meterNo"
}
%>
<td><div align="center" class="sscolor1"><%= va5%>
Right now I have this code here that is checking a database table for a Meter Number, when the meter number is 00000000 then it just displays a blank, what I want to be able to do is have this statement check for 000000000 and "null" and display a blank if either is present. Is there a way to rewrite or modify this statement to check for both of these?