Re: freemarker w/ servlets -- access contextRoot
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Saturday, January 22, 2011, 9:18:32 PM, David Siefert wrote: >> BTW, why I don't like when frameworks use freemarker.ext.servlet (or >> anything similar) is that it's just a JSP Model-2 >> (http://freemarker.org/docs/pgui_misc_servlet.html#pgui_misc_servlet_model2) >> hack which should only be used if a Web framework only supports >> Model-2. JSP Model-2 itself is already a dirty hack, so ext.servlet is >> a dirty hack for simulating another dirty hack. But an important point >> of FreeMarker (vs JSP) is exactly that you can just call it with a >> plain Java API, you don't have to forward a HTTP request and put >> information into HTTP request attributes and horrors like that. >> >>> Would it also be worth having the servlet automatically include in >>> the data-model some of the servlet request properties (just like >>> Request, Session, Application implicit objects get added)? >> >> It depends on the philosophy of the web application framework... (Like >> currently I'm working in one that doesn't even expose request >> attributes.) >> > > I am interested in what web framework you are using, please share. It's non-OS in-house stuff... > Thanks, > David -- Best regards, Daniel Dekany ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d