Click to See Complete Forum and Search --> : displaying null or "" values in a Table


gnanesh
09-11-2003, 07:46 AM
folks

I have the following code

if(changedString == null || changedString.length() == 0){
changedString =" ";

}

where changedString is getting value from the database, Here i am checking for null or length == 0 on changedString , i need to display a blank value in JSP, Let me know how do i do this

thanks
km

toicontien
09-11-2003, 02:17 PM
If you want to insert a null value into an HTML table using JSP, \  should work. That inserts the HTML entity for a non-breaking space. That way the table cell will show up on the screen, but won't contain any contents.

I'm just assuming you'll have to escape the ampersand like you do in most programming and scripting languages.

Is that what you are asking for?