Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I access native java in freemarker?

Tags:

freemarker

For example, I would like to do some manipulation and methods using the Math native java class.

How could I gain access to this?

like image 559
Kamilski81 Avatar asked Dec 29 '11 05:12

Kamilski81


1 Answers

You can call any public and static method of exposed beans to Freemarker. See a similar question here. Also see the documentation.

like image 161
Mohsen Avatar answered Nov 26 '22 11:11

Mohsen