Changes on the Java side
Bug fixed: [1857161] JSP SimpleTag support was broken in 2.3.11.

In the templates, now you can conveniently call Java methods that use the Java 5 varargs feature (variable-length argument lists). Also the overloaded-method chooser logic now considers vararg methods more intelligently.

Enum constants are now identified by their name() instead of by their toString() (because the latter can be overridden in subclasses). This doesn't affect the way enum constants are printed; of course that still uses toString().

Messages in parser exceptions now display the name of the template.

感觉这个版本没什么值得惊喜的东西
评论
vaja 2008-02-27
这个以前的版本就支持了。
xfan1982 2008-02-20
今天看freemarker的文档发现宏支持可变参数
<#macro img src extra...>
<img src="/context${src?html}"
<#list extra?keys as attr>
${attr}="${extra[attr]?html}"
</#list>
>
</#macro>
<@img src="/images/test.png" width=100 height=50 alt="Test"/>
发表评论

提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则

您还没有登录,请登录后发表评论

xfan1982
搜索本博客
最近加入圈子
存档
最新评论