tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Marshall" <scott.marsh...@interserve.com>
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 http://www.javaranch.com/, 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 :

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

Scott

-----Original Message-----
From: Mohammed Zabin [mailto:jotnarta@gmail.com] 
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.

Thanks


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

Click
https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==
JNS1v5bGZbuTOPjIK+2ENjxq3GMhUlWAT0V2POnxNmQ!mcB82Xcwh!NYn5lY+uLw2btsQAFi
OFwXAj3mv3hPbgITlWZBZeAOn!r2!uDTWf9m+80cFPk6TLolz63Uk5fl8441EIT7BrwR+97B
5FK!iH3++kwNDPfbSRlqx1x!CIPJdMhExsGfFrC  to report this email as spam.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message