2 Replies Latest reply on Sep 19, 2013 9:14 AM by Carsten Skinner

    JSP compiler JDK1.7

    Carsten Skinner Newbie

      Where can I set the parameter "compilerTargetVM" for JSP compiler on JBoss 7.

        • 1. Re: JSP compiler JDK1.7
          Tomaz Cerar Master

          Hi,

           

          something along this lines

          <subsystem xmlns="urn:jboss:domain:web:x.x" ..>

          <configuration>

                                   <jsp-configuration source-vm="1.7" target-vm="1.7" />

          </configuration>

          ...

          --

          tomaz

          • 2. Re: JSP compiler JDK1.7
            Carsten Skinner Newbie

            This don´t work in my standalone-full.xml

             

            <subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" native="false">

                        <configuration>

                            <jsp-configuration source-vm="1.7" target-vm="1.7"/>

                        </configuration>

                        <connector name="http" protocol="HTTP/1.1" scheme="http" socket-binding="http"/>

                        <virtual-server name="default-host" enable-welcome-root="true">

                            <alias name="localhost"/>

                            <alias name="example.com"/>

                        </virtual-server>

                    </subsystem>

             

            I use the switch case string feature.

            I can´t compile the jsp.

             

            This is the error message:

            An error occurred at line: 60 in the jsp file: /jsp/errors.jsp

            Cannot switch on a value of type String. Only convertible int values or enum constants are permitted