最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

struts2 - FreeMarker template attributes becomes null! in struts 7.0 customized component - Stack Overflow

programmeradmin3浏览0评论

I'm using sturts 7.0.0 custom Anchor class, I got following FreeMarker template error.

The following has evaluated to null or missing:
==> attributes  [in template "template/simple/a-close.ftl" at line 22, column 6]

template/simple/a-close.ftl is a standard struts template. The custom Anchor class is only extended original Anchor class.

This Anchor class worked fine up until struts 6.3.0.

If you try create the same tomcat 10.1 Dynamic Web Project in Eclipse, pull my test project, reload gradle project, and run gradle update_libs to import lib directory.

What settings should I make to properly recognize the attributes?

发布评论