GWT + JSTL in development mode — is it possible?

后端 未结 1 1592
忘掉有多难
忘掉有多难 2021-01-21 11:18

I have a GWT app (generated by roo) that I have decided to secure with Spring Security. Roo generates a login.jspx page as part of the security setup and this jspx uses some ba

相关标签:
1条回答
  • 2021-01-21 11:33

    Evidently, the Jetty server underpinning GWT development mode has JSTL 1.1 already on the classpath somewhere. If you change the Maven dependencies that Roo adds by default

        <dependency>
            <groupId>javax.servlet.jsp.jstl</groupId>
            <artifactId>jstl-api</artifactId>
            <version>1.2</version>
            <classifier/>
        </dependency>
        <dependency>
            <groupId>org.glassfish.web</groupId>
            <artifactId>jstl-impl</artifactId>
            <version>1.2</version>
            <classifier/>
        </dependency>
    

    to

        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
            <version>1.1.1</version>
            <classifier/>
        </dependency>
        <dependency>
        <groupId>taglibs</groupId>
            <artifactId>standard</artifactId>
            <version>1.1.1</version>
        </dependency>
    

    you will have a working GWT + JSTL environment!

    0 讨论(0)
提交回复
热议问题