struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Demetz <>
Subject Accessing VelocityEngine in action (struts2)
Date Tue, 12 Apr 2011 14:51:53 GMT
Dear everyone,

I've setup my Webapp with Struts2 using Tiles, but I also want to use 
Velocity to read a template and send a newsletter email. It would be 
good if I could access the already configured VelocityEngine from within 
my action. Otherwise I would need to inject the ServletContext by myself 
when initializing Velocity since I want to use the WebappResourceLoader.

The result type "velocity" work properly, but how can I read a Template?

Thank you for any hint,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message