Re: Freemarker loading into JSP
kukudas <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Daniel Dekany wrote: > > Monday, June 2, 2008, 3:16:42 PM, kukudas wrote: > >> wow so much replies :) thx. i saw an example on the freemarker.jar which >> has >> embedded jsp with freemarker gonna check this out in the next days. What >> i >> basicly want to achieve is that i maybe have a file probably xml where i >> can >> define my freemarker templates. > > That's possible, for example, by writing a custom TemplateLoader. > >> And then when i need one i make an reference in my jsp. > > (Maybe it would be simpler if you just left out JSP completely.) > >> I think this would be awesome so i could change content very quick just >> changing the template. Is there any best practise for making the "view" >> modul oriented? > > Using FreeMarker purely (no JSP or those XML files) with FreeMarker > macros can work in some cases. > >> I'm using Struts 2 and Spring too maybe i can use Spring to somehow >> map the Freemarker Templates. > > -- > Best regards, > Daniel Dekany > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > FreeMarker-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freemarker-user > > Hello Daniel, thanks for your reply. Is there any example to build a custom TemplateLoader? I thought about that too to just stick to Freemarker, problem is that i have now only jsp's so that would maybe to much effort to change them all, thats why i wanna try it first embedded. You right basicly i just need to define a macro and i could just reference to it, i didnt thought about yet but it seems promesing. -- View this message in context: http://www.nabble.com/Freemarker-loading-into-JSP-tp17535519p17602469.html Sent from the freemarker-user mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/