I've been through all that before, I think that snippet came from me. You can
actually just do
return new ForwardResolution("/WEB-INF/template.ftl");
And the container will process the template and the text will end up in your
div. It's nice when things just work like that.
-----Original Message-----
From: Mick [mailto:[email protected]]
Sent: Thursday, March 26, 2009 1:09 PM
To: [email protected]
Subject: [Stripes-users] Streaming FTL Pages for AJAX
I would like to return the output of FreeMarker templates to the client as a
file and for use in AJAX calls rather than using the standard forward
resolution. Is there a way to access the Stripes FTL configuration so that I can
simply get the templates myself rather than creating a new FTL configuration and
merging the bean data?
The closest thing I saw in the list is this:
return new StreamingResolution("text/html", freemarkerUtil.process(
someTemplate, dataModel));
But it appears that freemarkerUtil is a custom function written by the message
author.
------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users