tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Marshall" <>
Subject RE: Null
Date Thu, 21 Jun 2007 10:53:24 GMT
Hi Mohammed

This isn't the best forum to ask this kind of question : try something
like, you'll get good answers from there.

As an interim, check for null values before attempting to display any
value. Something like Jakarta commons StringUtils package is a big help
in keeping your code tidy :

<%= StringUtils.isBlank(master.getHeatLog()) ? "&nbsp;" :
aster.getHeatLog() %>
<td><%= master.getInstallDate() == null ?  "&nbsp;" :
DateUtil.getStringFromDate(master.getInstallDate())   %>


-----Original Message-----
From: Mohammed Zabin [] 
Sent: 21 June 2007 11:45
To: Tomcat Users List
Subject: Null

Hi All

Anyone knows how to deal with null values in JDBC ResultSet??

I am trying to render a table in jsp page that read its value from the
database, sometimes, the database returns null values, and so, the whole
table couldn't be rendered. Is there any way to deal with null values.


This e-mail has been scanned for all viruses by Blackspider MailControl.

5FK!iH3++kwNDPfbSRlqx1x!CIPJdMhExsGfFrC  to report this email as spam.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message