handling nulls in jsp textbox
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 below but still it displays null
What is the value returned by userInfoObj..getPhoneno()?
I replaced with String phone= null; in your code and tried. It worked perfectly.
I didn't see null in text box.
Your code should work just fine, and print empty string instead of null.
Where's the problem ?
|All times are GMT +1. The time now is 09:16 AM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.