Are nulls allowed in the Bastarih field?  If so, then can through a null
pointer exception doing 'result.getDate("BasTarih").toString()'.  Split
it up into two statements or enclose it in a try/catch block.

Baris Ari wrote:
>
> hi ive got a jdbc question. I am using SQL server v7 Websphere v2. In my
> servlet i have a row like
>
> out.println("<td>"+result.getDate("BasTarih").toString()+"</td>");
>
> Bastarih field is defined as datetime in SQL server. But the servlet doesnt send the 
>output after that row.
> What am i doing wrong?
>
> (Sorry to send a java-jdbc question )
>
> Thanks in advance
>
> Baris Ari
> I-BIMSA
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to