小弟用eclipse6.6写jsp程序时,相关包已经引入,用Set和Iterator定义对象老报错,内容如下: Multiple annotations found at this line: 
-The type Set/Iterator is not generic;it cannot be parameterized with argument <artile> 
-Syntax error,parameterized types are only available is source level is 5.0 
(artile是我定义的一public类)   请问是eclipse版本的问题吗,6.6应该和5.0兼容的啊,如果不是版本问题那该怎么解决,请指教啊,多谢!(原来用6.0没有此问题) 

解决方案 »

  1.   

      不好意思,我不太明白你的意思,我在IE里运行抱如下错误:
    root causeorg.apache.jasper.JasperException:Unable to compile class for JSPAn error occurred at line:122 in the jsp file: /article.jsp
    Generated sevrvlet error:
    The method itertor() is undefined for the type Set<Article>...请指教!
      

  2.   

    无法编译JSP技术类sevrvlet产生错误: 
    方法itertor ( )是未定义类型设置<Article>
      

  3.   

    -,-eclipse出到6.6啦...我才用到3.3
      

  4.   

    jdk 1.5
    Windows-Preferences-java-compiler-Compile compliance level-5.0
      

  5.   

      请问6楼意思是不是我得用jdk1.5才行啊!
      

  6.   

    检查项目属性中的java compiler中的compiler compliance level 是否是6.0