chaddu1256
IS-IT--Management
<%
//to test for null values
String va2 = "";
if (utilWrap1.getExtension8() == 0.000000){
va2 = " ";
}
else{
va2 = utilWrap1.getExtension8();
}
%>
For some reason this is breaking the page. Basically the utilWrap1.getExtension8 is pulling some stuff out of an oracle database, in this case it is a Water Meter Reading. When there is actually a reading in the table it displays on our web page. ex. 3459.000000 When there is no meter reading it displays as 0.000000. What we want is for it to display a blank space instead of 0.000000. I inserted this little piece of code and it breaks our page every time. Anyone help?
//to test for null values
String va2 = "";
if (utilWrap1.getExtension8() == 0.000000){
va2 = " ";
}
else{
va2 = utilWrap1.getExtension8();
}
%>
For some reason this is breaking the page. Basically the utilWrap1.getExtension8 is pulling some stuff out of an oracle database, in this case it is a Water Meter Reading. When there is actually a reading in the table it displays on our web page. ex. 3459.000000 When there is no meter reading it displays as 0.000000. What we want is for it to display a blank space instead of 0.000000. I inserted this little piece of code and it breaks our page every time. Anyone help?