views:

60

answers:

1

I'm looking for a struts2 StringTemplate result type.
Given an action result I'd like to render the html using StringTemplate.
There are struts2 result types for Velocity, FreeMarker etc but I haven't been able to find one for StringTemplate, Google doesn't help.
Has anyone seen such result type?
Or perhaps this is something that mysteriously cannot be done?
I think I'll go and implement one myself, but naturally I'd like to look first.

Thanks!

A: 

I created my own result type. It's documented here http://prettyprint.me/2009/11/13/stringtemplate-a-step-forward-to-a-better-web-mvc/

Ran