Force Tomcat 3.3 compiler to compile JSPs as Java 1.5?

You have to specify the VM version you want to use in your servlet config file (web. Xml).

You have to specify the VM version you want to use in your servlet config file (web. Xml): compilerSourceVM 1.5 compilerTargetVM 1.5.

I put that code snippet into my application's WEB-INF/web. Xml, just below the top-level element (ie as a direct child of ) but it still didn't help. Any other suggestions?

– Raj Sep 28 '11 at 8:26 I haven't been able to find and corroborating evidence but I suspect Generics is only supported on newer versions of the Servlet spec. I believe the earliest version of the spec supporting Java 1.5 language features is Servlet 2.4/JSP 2.0 which is supported by Tomcat 5.5.x. See Apache Tomcat versions.

– gcastro Sep 28 '11 at 20:26 I feared that might be the case. Thanks for investigating. – Raj Sep 30 '11 at 9:58.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions