views:

444

answers:

1

Our web application is JDK 1.5 compliant, and is running succesfuly on WebSphere 6.1

However, some JSPs we have that contain Java code in 1.5 syntax fail to compile by WebSphere.

It seems that for some reason, WebSphere treats the JSPs as 1.4 complient and fails to compile.

Any idea why and how to solve this? (Stop writing Java in JSPs is one answer, what else?)

+1  A: 

Have a look at this page of the documentation. It claims there's a "JDK source level" option:

JDK source level
Specifies the source level at which the Java compiler compiles JSP Java sources. Valid values are 13, 14, and 15. The default value is 13, which specifies source level 1.3.

Jon Skeet
@Jon - this seems to be for pre-compiled JSPs, I'm still looking in their docs for the "on the fly" settings
Ehrann Mehdan
@Ehrann: It may well just be badly explained. I think it's worth giving it a try even if you're not precompiling.
Jon Skeet
@Jon - WebSphere docs? Badly explained? no way... ;)
Ehrann Mehdan