java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.LoopTag
生活随笔
收集整理的这篇文章主要介绍了
java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.LoopTag
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
开发工具:IntelliJ IDEA for Mac
开发项目:struts2-demo
构建工件:Maven
问题描述:在 jsp 中使用了 jstl 标签 <c:forEach>,浏览器访问 Action 组件提示错误:
把下面的 jstl 的依赖:
<dependency><groupId>javax.servlet.jsp.jstl</groupId><artifactId>jstl</artifactId><version>1.2</version> </dependency>改成:
<dependency><groupId>javax.servlet</groupId><artifactId>jstl</artifactId><version>1.1.2</version> </dependency>问题解决!
总结
以上是生活随笔为你收集整理的java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.LoopTag的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: Struts2的配置文件struts.x
- 下一篇: Struts2的控制器(Controll