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?
Brandon Tom, SCJP, MCP<br />Programmer/Graphic Designer<br /><a href="http://mailto:email@example.com" target="_blank" rel="nofollow">firstname.lastname@example.org</a>
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.