Are you saying you want to stream the raw FTL file back?  Or do you just
think that a ForwardResolution won't work with AJAX?  If it is the latter,
fear not.  I do it all the time, with a JSP, but really, it is no
different.  You see, when you send in an AJAX requeset, the server doesn't
care that it is AJAX and the same goes for the response.  If you are just
trying to stick some dynamic HTML in a div, just return a ForwardResolution.

If it is the former, then I'm not going to have the answer because A) no
idea why you would need to do this and B) haven't really used FreeMarker.

Gregg

On Thu, Mar 26, 2009 at 12:09 PM, Mick <[email protected]> wrote:

> 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

Reply via email to