wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes What should be the  path of  .vm in servlet ( Apache Velocity) ( Where is .vm file placed) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "What should be the  path of  .vm in servlet ( Apache Velocity) ( Where is .vm file placed)" Watch "What should be the  path of  .vm in servlet ( Apache Velocity) ( Where is .vm file placed)" New topic
Author

What should be the path of .vm in servlet ( Apache Velocity) ( Where is .vm file placed)

ravisha andar
Ranch Hand

Joined: Feb 25, 2011
Posts: 55

Hi All,

I have a servlet

Class testServlet extends HttpServlet
{
}

I am using apache velocity to generate some text.

But the path of .vm is not recognized

VelocityEngine ve=new Velocity();
Template template =ve.getTemplate("test.vm");


Where should i place the .vm file.

Any help is highly appreciated!!!

Thanks.
 
Consider Paul's rocket mass heater.
 
subject: What should be the path of .vm in servlet ( Apache Velocity) ( Where is .vm file placed)
 
Similar Threads
How to use velocity with out template
Where to place File for our Application running in Weblogic under Production Mode
Velocity Templates with Servlets
Splitting an XML file
Velocity servlet