Jfinal 有时候 el 语句不能执行。关键有时候行有时候不行

发布于 2021-11-30 11:54:18 字数 5860 浏览 887 评论 1

com.jfinal.render.RenderException: org.apache.jasper.JasperException: javax.el.PropertyNotFoundException: The class 'com.HuangShan.model.ProjectDeclaration' does not have the property 'id'.

  at com.jfinal.render.JspRender.render(JspRender.java:69)

  at com.jfinal.core.ActionHandler.handle(ActionHandler.java:97)

  at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:72)

  at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)

  at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)

  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)

  at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)

  at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)

  at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)

  at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)

  at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)

  at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)

  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)

  at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)

  at org.eclipse.jetty.server.Server.handle(Server.java:365)

  at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)

  at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)

  at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)

  at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)

  at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)

  at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)

  at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)

  at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)

  at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)

  at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)

  at java.lang.Thread.run(Thread.java:619)

Caused by: org.apache.jasper.JasperException: javax.el.PropertyNotFoundException: The class 'com.HuangShan.model.ProjectDeclaration' does not have the property 'id'.

  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)

  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:492)

  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:378)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

  at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669)

  at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)

  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)

  at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578)

  at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)

  at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)

  at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)

  at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)

  at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)

  at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)

  at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:276)

  at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103)

  at com.jfinal.render.JspRender.render(JspRender.java:67)

  ... 25 more

Caused by: javax.el.PropertyNotFoundException: The class 'com.HuangShan.model.ProjectDeclaration' does not have the property 'id'.

  at javax.el.BeanELResolver.getBeanProperty(BeanELResolver.java:664)

  at javax.el.BeanELResolver.getValue(BeanELResolver.java:293)

  at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:188)

  at com.sun.el.parser.AstValue.getValue(AstValue.java:120)

  at com.sun.el.parser.AstValue.getValue(AstValue.java:167)

  at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)

  at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1009)

  at org.apache.jsp.HuangShan.ProjectManage_jsp._jspx_meth_c_forEach_0(ProjectManage_jsp.java from :311)

  at org.apache.jsp.HuangShan.ProjectManage_jsp._jspService(ProjectManage_jsp.java from :247)

  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403)

  ... 41 more

 

 

大神们帮帮忙,搞了好几天网上的方法都不行,有没有人遇到过   有时候el语句不执行

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

把回忆走一遍 2021-11-30 19:28:58

将 jfinal 升级到 3.0 版本试一下

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文