Hi how can I replace "null" from being displayed with an empty string in a textbox on the JSPs ..depending on textbox data availability..
I tried the code
<% String phone=userInfoObj..getPhoneno();
if(phone==null||phone.equalsIgnoreCase("null"))
phone=" ";
%>
<td >
<input type="text" name="phoneno" class="txtBox" value="<%=phone %>"></td>
but still it displays null
can you suggest by using java or javascript?
<% String phone=userInfoObj..getPhoneno();
if(phone==null||phone.equalsIgnoreCase("null"))
phone=" ";
%>
<td >
<input type="text" name="phoneno" class="txtBox" value="<%=phone %>"></td>