Language level issue at JSP

Hi,

I have set Project language level as 5.0. So I can use the thing like List in my Java files and without any problem when running. But when I put List]]> into my JSP file and open this JSP in the brower, an exception occured, saying:
Unable to compile class for JSP An error occurred at line: 28 in the jsp file: /Reporting/reporting.jsp

Asking me to use -source 1.5. ... is not supported at -source 1.3.

What does it mean? How can I setup it?

Thanks
Chris

2 comments
Comment actions Permalink

If you are using Tomcat, make sure you are using latest 5.5.x version
Level 5 was not supported in older 5.5.x versions

0
Comment actions Permalink

Hi Tom,

I was using Tomcat 5.0.30 which doesn't support Java 1.5. After I switched to Tomcat 5.5.20, the problem is gone.

Many thanks.

Chris

0

Please sign in to leave a comment.