I am using it primarily for emails, but I need to be able to call the templatizing method from within a business layer class. Something like:
Template template = new Template(path); Map map = getDataForEmail(); String result = template.templatize(map); On Sat, Jan 29, 2011 at 12:13 PM, Chris Pratt <thechrispr...@gmail.com> wrote: > Are you using this for generating emails from web applications? I developed > a tag library that allows you to generate text/html emails using JSP and it > works great with Struts/Tiles/Spring. (It would probably work with > Freemarker/Velocity as well, I've just never tried it) > (*Chris*) > > On Sat, Jan 29, 2011 at 11:41 AM, Dave Newton <davelnew...@gmail.com> wrote: > >> On Sat, Jan 29, 2011 at 2:37 PM, Dave Evans wrote: >> >> > Yes, I currently use velocity. But i'd really rather just use a single >> > "language" for both web and non-web presentation. >> > >> >> Ew. IMO JSP is a poor general-purpose templating language, and makes less >> sense for non-web presentation. >> >> IIRC Musachy banged on the TC JSP engine for testing purposes, you could >> try >> that if you're dead-set on doing this. No matter what, you're introducing >> what I think is a pretty sketchy dependency, almost regardless of which >> engine you decide to hack out of its server. >> >> Dave >> > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org