jsp and generics

G

grasp06110

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
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

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)

http://blog.taragana.com/index.php/...enerics-enabled-and-other-15-only-features/1/

Arne
 
G

grasp06110

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
474,262
Messages
2,571,045
Members
48,769
Latest member
Clifft

Latest Threads

Top