Hi Friends,
Jdev Version: 11.1.1.7
Am trying to load velocity template in backing bean, AMImpl.
But no where it is loading. It is throwing null pointer exception at getTemplate method.
I tried giving different ways as below, still am unable to load it.
Is there any issue with the code?
VelocityEngine velocityEngine = new VelocityEngine();
Velocity.init();
1.Template template = velocityEngine.getTemplate("src/com/view/portal/templates/fb_velocity_template.vm");
2.Template template = velocityEngine.getTemplate("./src/com/view/portal/templates/fb_velocity_template.vm");
3.Template template = velocityEngine.getTemplate("fb_velocity_template.vm");