I switched my views from jsp to ftl in a sample spring app last week. I have been very happy with freemarker. I only have one problem. In the JSP version, I have a custom tag renders a menu item for users belonging to specific roles. I could create a macro to do the same thing but I am not sure how to do that in freemarker since the request object is exposed in ftl. Is there a way to call isUserInRole(...) in freemarker? Perhaps, such functionality should be added to spring's RequestContext object which is exposed to ftl. If I can do that, I may permanently switch to ftl especially since my container (weblogic 8.1) does not support JSP 2.0 which, although not as powerful as freemarker, would simplify my life.
Announcement Announcement Module
No announcement yet.