Hi,

Declare your date variables with full package names, instead of plain
Date type:

java.util.Date myDateVar = new java.util.Date();

That is necessary because you import both java.util and java.sql
and compiler  cant decide wich Date class to use.

Cezar

On Mon, 23 Aug 1999, Duke Martin wrote:

> hi,
>
> one of my servlets uses a database.  inside the servlet I am trying to use
> the Java.Util.Date class but when i compile i receive an error saying
> conflict between Java.Util.Date and Java.SQL.Date.  I do not use
> Java.SQL.Date, however, i do use other classes within the Java.SQL package.
>
> Duke
>
> ___________________________________________________________________________
> 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