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, 4:35:11 PM, doahh wrote: > Thanks for the replies. > > Am I correct in reading your response that it is currently not supported? Funny enough, not at the moment if the Web Application Framework relies on FreemarkerServlet. If the Web Application Framework authors choose to use their own solution instead (that in principle most MVC-centric frameworks should do, especially heavy stuff like CMS-es) then it's completely up to the framework author if he exposes Servlet-specific features at all (in truly clean MVC you don't), and if so which ones and how, so it's completely out of our control, by design. > I am using Struts2 with the Freemarker plugin and as such I don't have to do > anything in order to get Freemarker templates to work (other than making > sure that freemarker.jar is available). This is something that I could > really do with getting working as the option to use JSP is not really > available to me (my JSP/FTL files are stored in a Java Plugin Framework > plugin.jar file and struts doesn't seem to be able to reference them without > have the result type set to 'freemarker'). I believe Struts 2 uses FreemarkerServlet instead of an own solution (but maybe I'm wrong), so anything we add to it will be automatically available for you after updating the freemarker.jar. > I had a quick look into the FreemarkerServlet you mentioned but I am unsure > how to use it in the way you suggest. I will carry on looking at it but > could you suggest and possible ways to make it achieve what I am looking > for? Maybe the simplest solution is if you wait until we add this feature to the SVN repository (we will inform you), and then download the fresh "nightly" FreeMarker build, replace the freemarker.jar in your system, and that's it. -- 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=/