This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Struts and the fly likes Using Freemarker to template email... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using Freemarker to template email..." Watch "Using Freemarker to template email..." New topic
Author

Using Freemarker to template email...

Eric Nielsen
Ranch Hand

Joined: Dec 14, 2004
Posts: 194
I'm trying to figure out the simple/ clean way to hook up freemarker ( or other template system ) to generate email bodies to send in a struts 2.1 based application.

I've seen some helper classes in Spring based apps that help deal with classpath issues but I haven't seen similar for struts 2. Do I just create a Configuration by hand an inject around?

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Using Freemarker to template email...