Equivalent of jsp:useBean in FTL
iogbole <[email protected]> Mon, 2 Sep 2013 13:29:53 -0700 (PDT)
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I'm a newbie in FTL and I was wondering if it's possible to use javabean in
FTL like it's done in JSP:
For example: Given this JavaBean:
/public class FTLquestion {
public String sayHello(){
return "Hello"
}
}/
In JSP, I will call this bean like:
/<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="ftlq" class="com.ftl.helloworld.FTLquestion"
scope="request"/>
<HTML>
....
${ftlq.sayHello}
....
</HTML>/
So my question is it possible to create javabean handler in Freemarker as
demonstrate with JSP above? Please suggest/help
--
View this message in context: http://freemarker.624813.n4.nabble.com/Equivalent-of-jsp-useBean-in-FTL-tp4654739.html
Sent from the freemarker-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk