File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Spring in Action this week in the Spring 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What should be the path of .vm in servlet ( Apache Velocity) ( Where is .vm file placed)