I'm trying to use the new Java 7 switch on strings feature.
But Tomcat is not cooperating.
I've made sure that tomcat is running under java 7 but it seems that it's not compiling under it.
I've added the following to the web.xml file, under the jsp servlet entry
<init-param>
<param-name>compiler</param-name>
<param-value>C:/Program Files/Java/jdk1.7.0/bin/javac.exe</param-value>
</init-param>
but it doesn't seem to do the trick.
Any tips would be appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…