Include JSTL dependency with Maven

后端 未结 7 1449
梦谈多话
梦谈多话 2020-12-24 11:51

I am using maven2, how do I add a dependency to JSTL (The JSP Standard Tag Library) ?

相关标签:
7条回答
  • 2020-12-24 12:47

    You need to add it to your pom.xml file.

    In the dependencies node you need to add a reference to JSTL. You will probably need to set its scope to compile. So it would look something like this

    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>jstl</artifactId>
      <version>"whatever version you need"</version>
      <scope>runtime</scope>
    </dependency>
    

    This is assuming you have the proper references to the maven distribution repository in your pom.xml or settings.xml

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