This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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 Introducing JavaFX 8 Programming this week in the JavaFX 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)
 
It's not a secret anymore!