Try putting hello.vm in the main webapp folder, not WEB-INF.

WILL

On 4/4/07, rajesh <[EMAIL PROTECTED]> wrote:

i am trying to access templet in HelloTest file which extends
VelocityServlet and in the coding i am using
try
{
context.put("name", "Velocity Test");
template = Velocity.getTemplate("hello.vm");
} catch( Exception e )
{
System.err.println("Exception caught: " + e.getMessage());
}
return template;
}
but i am recieving Unable to find resource './hello.vm' from the tomcat
6.0
server.i have saved hello.vm file in WEB-INF folder.
can u please guide me where i have been wrong,as i am very new to velocity
template language




--
Forio Business Simulations

Will Glass-Husain
[EMAIL PROTECTED]
www.forio.com

Reply via email to