JSTL in IntelliJ gives errors in JSP

前端 未结 4 415
醉话见心
醉话见心 2020-12-31 04:56

I\'m playing with Google App Engine in IntelliJ. I\'m trying to use JSTL tags in my JSPs. I\'ve tried two different URIs I found on the internet, and both of them give me er

相关标签:
4条回答
  • 2020-12-31 05:02

    Make sure that JSTL library jars are added to the module dependencies.

    0 讨论(0)
  • 2020-12-31 05:06

    Add something like this to your pom.xml under the <dependencies> node (you are using maven, right?):

    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>jstl</artifactId>
        <version>2.5</version>
    </dependency>
    

    For gradle and other build systems see https://mvnrepository.com/artifact/javax.servlet/servlet-api/2.5

    Also, make sure you pick a suitable version for your project. To see all available versions check here.

    0 讨论(0)
  • 2020-12-31 05:21

    In my case, I had to download the .jar from apache (https://tomcat.apache.org/taglibs/standard/) and add to my project dependencies.

    File > Project Structure > Modules > Dependencies
    
    0 讨论(0)
  • 2020-12-31 05:24

    I resolved it by adding jstl-1.2 in the libraries.

    • Right-click on "project"
    • Then go into "open modules setting"
    • Then in "libraries" click on the "+", then "add with maven"
    • Click on the checkbox to download in a folder, change the folder path for .../WEB-INF/lib (create the lib folder)

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