This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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)
 
Similar Threads
Velocity Templates with Servlets
How to use velocity with out template
Where to place File for our Application running in Weblogic under Production Mode
Splitting an XML file
Velocity servlet