开发者

Freemarker replacing JSPs?

开发者 https://www.devze.com 2023-02-22 11:10 出处:网络
I am new to Freemarker and 开发者_运维知识库learning more about it. I\'m coming from JSP background and so far I\'ve used the same for VIEW layer in all my application.

I am new to Freemarker and 开发者_运维知识库learning more about it.

I'm coming from JSP background and so far I've used the same for VIEW layer in all my application.

I might sound naive, but it's hard for me to think of building a web application without JSP.

I'm curious to know If someone has used Freemarker completely in their application for VIEW layer (i.e. not even a single JSP at all)?

Using Freemarker is as smooth as JSP for building VIEWs?


FreeMarker is a perfectly viable alternative to JSP. I've successfully used it in many web applications, and I've found it enforces a better separation of concerns between the view and the other layers.

One major difference is that FreeMarker templates don't support embedded Java code and are not limited to the Servlet paradigm.

The Spring framework provides everything you need to use FreeMarker instead of JSP.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号