Re: Include JSP page in freemarker page
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Friday, October 17, 2008, 3:15:39 PM, Attila Szegedi wrote: > Well, it's really just a matter of someone putting a > TemplateDirectiveModel into the data model that does the equivalent of > > httpRequest.getRequestDispatcher(path).include(httpRequest, > httpResponse) > > (I don't think we need a flushing option, that's what <#flush> is > there for) Indeed, you are right. > We could provide on as standard in the FreemarkerServlet, there's no > technical reason not to. Although it's not 100% BC, only 99.999% that (assuming it's called "servlet_include", not just "include" or something common like that). But I guess the chance of an accidental clash is so low that we just shouldn't mark this as a non-BC change. (Otherwise we had to add an allow_servlet_include init-option that in 2.3.x defaults to false.) > Attila. > > On Oct 17, 2008, at 3:02 PM, Daniel Dekany wrote: > >> Friday, October 17, 2008, 2:36:34 PM, doahh wrote: >> >>> Is it possible to include a JSP page inside of a freemarker page? I >>> have >>> tried: >>> >>> <#include "/WEB-INF/root-context-include/user/setup-and-css.jspf"> >>> >>> but it doesn't pass through the JSP processing engine. It is not >>> possible >>> for me to convert the include page to Freemarker as it is also used >>> in some >>> web contexts that are not freemarker aware. >> >> FTL's #include has little to do with JSP's apart from the name. But >> independently of that the FreemarkerServlet could provide a such >> facility (although I'm not sure if you are using that), something like >> <@servlet_include page="..." flush=true />. Attila, why it doesn't? >> Are there any technical issues with it? It's among the most frequent >> RFE-s for a long time. >> >> -- >> Best regards, >> Daniel Dekany -- Best regards, Daniel Dekany ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/