- What servlet are you using?  The VelocityServlet (which is
deprecated) or the VelocityViewServlet (which is part of VelocityTools
and is the replacement for the VelocityServlet)?

- Use of the FileResourceLoader in a webapp environment is not
recommended.  The VelocityTools project comes with a WebappLoader that
is much better for webapps.

- If your templates are in /webapp/templates, then that is where you
should point the resource loader; it would not be enough to point it
at the webapp root and expect it to look for a "templates" folder
automatically.

- For examples of how to configure and use the VelocityViewServlet,
you might consider checking out the example applications that come
with VelocityTools.


On 3/7/07, Nixon Sunny <[EMAIL PROTECTED]> wrote:
I am using the file resource loader to get the template. But, I am having
problems accessing it. Keeps getting error...

org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'products.vm'

My webapp structure is:

webapp<root>
|
-- templates

All my .vm files are inside the templates directory. I have overridden the
loadConfiguration() method to make the webapp root as my default file load
path. But, I guess thats not enough to point to the /webapp/templates
directory. What am I missing?

Thanks.

_________________________________________________________________
With tax season right around the corner, make sure to follow these few
simple tips.
http://articles.moneycentral.msn.com/Taxes/PreparationTips/PreparationTips.aspx?icid=HMFebtagline


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



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

Reply via email to