Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

jsp and generics

Thread view: 
grasp06110@yahoo.com - 19 Sep 2006 22:08 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.