• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Why Not 1.5 By Default?

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just out of curiosity. Why is it recommended that we stick with 1.4 when developing JSP? I wrote a class library that makes extensive use of generics, and I was surprised when I had to force Tomcat to compile in 1.5. The question is why did I have to do this?
 
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It depends which version of servlet engine (tomcat) your are using. If the servlet engine is not supporting or older version, such message would be given.
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Brandon Tom:
Why is it recommended that we stick with 1.4 when developing JSP?



By who?
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tomcat 5.5 is compiled and runs well under Java 1.5.
Your servlet, bean, and custom tag code should run fine with 1.5 features.

Starting with version 5.5 Tomcat ships with the JDT compiler (by the folks at Eclipse) for compiling JSPs. The advantage of this is that you no longer need a full JDK in order to run a JSP app under Tomcat.
One issue, however, is that JDT doesn't yet support all of the 1.5 features of Java.

One workaround is to configure Tomcat to use Sun's compiler.
See the Tomcat documentation for doing this.
A better workaround would be to move all of your Java code out of the JSPs and into your servlets and javabeans.

http://www.google.com/search?hl=en&q=JDT+Jasper+1.5+generics+Tomcat+&btnG=Google+Search
 
Brandon Tom
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

By who?



By NetBeans. When you create a new web project it says the source should be set to 1.4 for J2EE 1.4 projects. I don't know why setting it to 1.5 would cause a problem.
 
Brandon Tom
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nevermind, stupid question, I complete forgot about RMI
 
Please enjoy this holographic presentation of our apocalyptic dilemma right after this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic