java.lang.NoSuchMethodError:javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContex
我有这个代码不起作用。
<jsp:useBean id="abbreviationlist" class="AbbreviationListType"/>
<jsp:setProperty name="abbreviationlist" property="id"/>
<table>
<c:forEach items="${abbreviationlist.list}" var="abbreviation">
</c:forEach>
</table>
我有 AbbreviationListType 类,其中包含列表的 set 和 get 方法- get singlenature is =
public List<AbbreviationType> getList()
有人可以指出我做错了什么吗? 因为这不起作用,我得到这个堆栈跟踪:
javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext; java.lang.NoSuchMethodError:javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContex; 在 javax.servlet.jsp.jstl.core.LoopTagSupport.unExposeVariables(LoopTagSupport.java:620) ......................
这是我的 WEB-INF/lib
和我的 catalina/common/lib
i have this code which is not working.
<jsp:useBean id="abbreviationlist" class="AbbreviationListType"/>
<jsp:setProperty name="abbreviationlist" property="id"/>
<table>
<c:forEach items="${abbreviationlist.list}" var="abbreviation">
</c:forEach>
</table>
and i have the class AbbreviationListType with set and get methods for the list-
get singnature is =
public List<AbbreviationType> getList()
can someone please point out what i am doing wrong ?
cause this doesnt work and i get this stack trace:
javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContext;
java.lang.NoSuchMethodError:javax.servlet.jsp.PageContext.getELContext()Ljavax/el/ELContex;
at javax.servlet.jsp.jstl.core.LoopTagSupport.unExposeVariables(LoopTagSupport.java:620)
.....................
here is my WEB-INF/lib
and my catalina/common/lib
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的某些东西版本错误。从 lib 文件夹中删除所有
el-api
、jsp-api
和jstl*
jar。它们随您的 servlet 容器一起提供You have the wrong version of something. Remove all
el-api
,jsp-api
and thejstl*
jars from your lib folder. They are shipped with your servlet container