Hi Everybody,
I seem to be having a problem using generics in a jsp. Does anyone
have any insite as to how to get the following to work?
<jsp:scriptlet>
<![CDATA[
ArrayList<Object> objects;
]]>
</jsp:scriptlet>
I am currently using Tomcat 5.5.9.
This is the version of the jre I am running:
c:\>java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
Thanks,
John
Arne Vajhøj - 20 Sep 2006 02:53 GMT
> I seem to be having a problem using generics in a jsp. Does anyone
> have any insite as to how to get the following to work?
[quoted text clipped - 12 lines]
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
http://blog.taragana.com/index.php/archive/how-to-run-javac-15-or-beyond-compile
r-for-jsp-compilation-in-tomcat-55-with-generics-enabled-and-other-15-only-featu
res/1/
Arne
grasp06110@yahoo.com - 20 Sep 2006 14:36 GMT
Thanks! In case the link goes away the jist of the article is that
Tomcat 5.5 by default does not use a Java 1.5 compliant compiler by
default.