Hey there! any question in your mind? Ask It Now!.

Popular Categories

How to resolve this error: cannot be resolved to a type in jsp

+1 vote
asked in Programming by monika (2,040 points)
Hello guys have you faced this problem ever while importing a class in eclipse juno ?
this error is coming DataLayer cannot be resolved to a type in jsp.
Not getting any solution.
See my code am I doing anything wrong here?
package cars;
 import java.util.*;
 public class DataLayer{
    public Date returnDate() {
    Date d=new Date();
    return d;
If you know the solution so please help me out.Thanks!

1 Answer

0 votes
answered by nishant (380 points)
I think you should clean your project Or restart the eclips then try to run, May be it will help you.

Related Questions

+8 votes
2 answers 917 views
asked in Programming by mayank (250 points)
+3 votes
1 answer 861 views
+2 votes
2 answers 833 views
–1 vote
0 answers 171 views
+1 vote
1 answer 214 views
+6 votes
2 answers 3,207 views
+2 votes
1 answer 1,046 views
+1 vote
1 answer 959 views
+3 votes
1 answer 497 views
+8 votes
2 answers 170 views

Not a Member yet?

Ask to Folks Login

My Account
470 Folks are online
0 members and 470 guest online
Your feedback is highly appreciated