Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Compiling jsp

On 13/02/2014 10:56, Andrea Cappelli wrote:
Hi list,
I have a webapp which needs to compile some jsp

I'm using

java version "1.7.0_45"

I had the same problem with JDK 1.7 some time ago, and it seems you need to set BOTH the compilerSourceVM and compilerTargetVM init params. Try putting this in your web.xml (or in webdefault.xml):

    <init-param>
      <param-name>compilerSourceVM</param-name>
      <param-value>1.7</param-value>
    </init-param>
    <init-param>
      <param-name>compilerTargetVM</param-name>
      <param-value>1.7</param-value>
    </init-param>

--
John English


Back to the top