try prefixing:
java.util.Date dateActual = new java.util.Date()

regards!

-----Opprinnelig melding-----
Fra: Ramos Miguel-FMR068c [mailto:[EMAIL PROTECTED]]
Sendt: 6. mai 2001 01:26
Til: [EMAIL PROTECTED]
Emne: Reference to Date is ambiguous?


Hi all,

I am having the following problem:

"giDefects.java": Error #: 304 : reference to Date is ambiguous; both class
java.sql.Date in package java.sql and class java.util.Date in package
java.util match at line 50, column 5

On my import section I have:

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import java.sql.*;

I need both packages: util.* for servlets

And I am creating the object like this:

Date dateActual = new Date();

How can I fix this problem?

Thanks in advance.

Miguel

___________________________________________________________________________
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


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email.

This email message has been virus checked by the virus programs used
in the DnB Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

___________________________________________________________________________
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