need help to understand Apache Velocity
Hello,
Here Is my thing. I am trying to develop a very simple program that implements both strus and Velocity. I am using strus to handle moving from page to page. Anyway, I have been trying to figure out how to wrrite the java code for the velocity pages. I understand the concept and the "template" of what needs to into each class to get the .vm file to be outputted as a html file. In the books that I have been reading each velocity java page I've seen in books and on the web had the velocity page have a main method. Now if I have to create a java file for each .vm file I create, which I have no problem with, I can't have a main method for each. I know that. So, how do I it? I am not sure if I should be extending from the VelocityServlet class and I am not sure about the method names. Can I mmakeup my own or should I be overwritting a predefined method?
Thanks,
Hockeyfan
|