JSTL/JSP EL (Expression Language) in a non JSP (standalone) context

前端 未结 10 1674
一向
一向 2020-12-01 08:28

Can anyone recommend a framework for templating/formatting messages in a standalone application along the lines of the JSP EL (Expression Language)?

I would expect t

10条回答
  •  被撕碎了的回忆
    2020-12-01 09:23

    You can just use the Universal Expression Language itself. You need an implementation (but there are a few to choose from). After that, you need to implement three classes: ELResolver, FunctionMapper and VariableMapper.

    This blog post describes how to do it: Java: using EL outside J2EE.

提交回复
热议问题