Re: Include JSP page in freemarker page

Rhett Sutphin <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
> Guys, we still should add that servlet_include stuff to the
> FreemarkerServlet, after all we give access out-of-the-box to the
> Servlet scopes too, so, you see, it meant to be a dirty but instant
> replace-your-JSPs solution, which it isn't without Servlet include,
> IMO.

A similar useful feature would be support for JSP 2.0 tagfiles (i.e.,  
taglibs that are written using JSP code instead of java code).

I looked at adding support for this to freemarker a few months ago,  
but with no luck.  I'm hoping I just missed something and it would be  
as easy as you suggest adding servlet_include would be.

Rhett

On Oct 17, 2008, at 3:04 PM, Daniel Dekany wrote:

> Friday, October 17, 2008, 8:07:24 PM, doahh wrote:
>
>> Thanks very much for your suggestions guys. I have been a little  
>> dumb here as
>> I have found a very simple way to do it. As I am using the Struts 2
>> framework I can simply do:
>>
>> <@s.include
>> value="/WEB-INF/root-context-include/user/page-header.jspf" />
>>
>> and everything works; the jsp page is included into my freemarker  
>> template.
>> I never even considered that Struts 2 may provide an include tag.
>
> It's up to their design... except that we didn't give an
> out-of-the-box solution for that, so maybe that's only why they
> provide @s.include. But ideally their include does something WebWork
> specific, that's why. (We actually encourage custom solutions, that's
> exactly an important point of FreeMarker... fuller control over
> things.)
>
> Guys, we still should add that servlet_include stuff to the
> FreemarkerServlet, after all we give access out-of-the-box to the
> Servlet scopes too, so, you see, it meant to be a dirty but instant
> replace-your-JSPs solution, which it isn't without Servlet include,
> IMO.
>
> -- 
> 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=/
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user


-------------------------------------------------------------------------
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.