HI,
I'm having difficulties with accessing a MySQL database resultset in a
JSP.
The error I'm getting is this:
The following
JDBC exception has occurred : java.lang.NullPointerException
The reason I get it is because some columns in the database can be null and then the "ResultSet resultset.getString(4).trim();" code produces this error.
I've been over the java.sql class docs to see if I cound find a boolean to indicate whether or not a column was null but I couldn't find anything.
Ideas?
Thanks,
Terry
Raising Flares debut album 'Ignition' out now
http://www.raisingflares.com
Terry Doyle <br />SCPJ 1.4 , SCWCD , SCMAD(Beta)