使用Apache Click时,如何从(速度)模板调用静态方法?
You can use
addModel("MyClass", MyClass.class)
in your Page.
Velocity 1.6 and up supports this:
http://velocity.apache.org/engine/devel/developer-guide.html#supportforstaticclasses
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.