Re: Include JSP page in freemarker page

Attila Szegedi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
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)

We could provide on as standard in the FreemarkerServlet, there's no  
technical reason not to.

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

-------------------------------------------------------------------------
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=/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.