GOT java 1.5 working with JSPs !
843836Dec 26 2003 — edited Aug 26 2004Man do I love Java, and man do I love Java 1.5 !!!!
But Since xmas i'm trying do test foreach loops etc. in JSPs
"of course" using tomcat ( being a developer deploying on netware... )
But where do you set jasper/javac compiler options in tomcat ???
I was trying hard, reading web.xml docs, reading ant docs
[ only up to 1.4 possible! :( ], trying chats, no success, argh !
I was very frustrated, i couldn't sleep...
I needed to get this going to fully appreciate the new features of 1.5
- as they are just too perfect for jsp development!
( I have a jsp that is using HashMaps and ints heavily...
This file will shrink probably by 30% !!! )
So i remembered using resin (www.caucho.com) sometime ago
and being very happy with it once :-)
So i downloaded resin 5 minutes ago, unpacked and changed the resin.conf
using the very good documentation:
<javac compiler="internal" args="-source 1.5"/>
et voila it worked instantly !
Good work resin team !
So I just wanted to share this success with everyone wanting to use
the new 1.5 features with JSPs ! They can do so with Resin.
Example 1.5 JSP: ( yippie!!!! :)
<html>
<%
enum Coin { asd, dsa }
//for( String s : request.getParameterNames() )
for( String s : new String[] {"asdasdf", "sdtret", "cvdgz324"} )
out.write( s + "<br>" );
%>
Test: <%=""+(5+5)+Coin.asd %>
( Sorry for my over-enthusiasm and my bad english ! :-)
Have Fun !