velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raghushri Sankaran <>
Subject Concern regarding template path!
Date Sat, 12 Oct 2002 19:27:16 GMT
Hi All,
        I am just starting to use Velocity. I tried using the 1.3 
version but it gave me certain compilation problems when running the 
sample program provided in the manuals. I theninstalled the 1.1 version 
and everything worked fine. My only concern now is that I am trying to 
use it with ATG Dynamo application server. Id I just initialize velocity 
and merge the template , the template file is picked up from the app 
server home. This behaviour is expected, but when I try and give a 
relative path it does not work. Here is my code:

      Properties p = new Properties();
      VelocityContext vc = new VelocityContext();
      StringWriter w = new StringWriter();
      System.out.println("Template is :"+w);
    catch(Exception e)

I get a ResourceNotFoundException even though my template t.vm is in 
<APPSERVERHOME>/templates directory. Can someone please help.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message