Re: Spring MVC 3 with SpEL, Tiles and Freemarker?

misuss <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Here is part of template using SpEL as FreeMarker directive: 
<@spel expression="We say '{@greetingBean.printGreeting(name)}'"/> from
Freemarker

the template evaluation result is: We say 'Hello Felix' from Freemarker

@greetingBean is standard Spring bean (contains 'Hello' greeting field)
name is FreeMarker model attribute (set up as 'Felix')

This is usable only for simple SpEL expressions producing String output.

For details follow this post:
http://adaptiweb.blogspot.sk/2012/10/freemarker-template-with-spring.html




--
View this message in context: http://freemarker.624813.n4.nabble.com/Spring-MVC-3-with-SpEL-Tiles-and-Freemarker-tp4654186p4654346.html
Sent from the freemarker-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
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.