Hi, I'm looking for a concrete usage example for the WebappLoader. I've checked the mail archives and examples but haven't found anything more than bits and pieces. What I would like to know is:

What properties do I need in the properties file?
e.g.
resource.loader = webapp
webapp.resource.loader.class = org.apache.velocity.tools.view.servlet.WebappLoader
webapp.resource.loader.path = WEB-INF/templates
Is this correct? How do I know Velocity.init(Properties) is even using these?


What java code would I need? Do I call WebappLoader directly? Keeping in mind I am _not_ extending or using VelocityServlet or VelocityViewServlet. I am simply using Velocity templates in a webapp environment where the webapp is deployed from a WAR. All I really want to do is use the WebappLoader to get my templates which are under WEB-INF.

I'm using velocity-dep-1.3.1-rc2.jar and velocity-tools-view-0.8.jar.

Thanks,
Everett



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to