MVEL Templates with Java

mvel-small

I recently had the need to develop a Java application that allowed the creation of HTML templates that could contain some basic if-else logic as well as bind some calculated parameters. The key around this was to make the templates editable, since they contained a lot of frequently changing content.

What I found to use was the MVEL 2.0 expression language.

What is MVEL, well I think their site says it best, “MVEL is a powerful expression language for Java-based applications.”

Read more