• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Object cannot be resolved to a type in JSP

 
Greenhorn
Posts: 2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have imported an existing project to eclipse and there are lots of "cannot be resolved to a type" in the JSPs. The object references exists in the included file of in the global reference. How do I resolve these errors.
Some of the examples of these error are:
- Iterator cannot be resolved to a type
- ArrayList cannot be resolved to a type
- List cannot be resolved to a type
- Collection is a raw type. References to generic type Collection<E> should be parameterized.

I know the imports already exists in parent page, included page or in global reference. But some how eclipse is not able to resolve these reference.

The environment details are as follows:
Java 6
Eclipse Luna
WTP 2.5
Weblogic 10.3.6

Thank you so much in advance for your help.
 
author & internet detective
Posts: 41250
849
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Archana,
I turn off JSP validation to avoid this problem hen it comes up. Well designed JSPs shouldn't have Java code in them anyway so there shouldn't be many such references anyway.
 
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic