pepper
06-24-2005, 04:55 PM
I am writing a web app. In my implementation I am using apache Struts and Apache Velocity (http://jakarta.apache.org/velocity/). I can't seem to get one page to display. And that is because I can't get the context of the webpage to be printed to the web page. So here is my question:
Where do I place the PrintWriter object to output the context of the webpage?
Right now I have it in my Action class (The actrion class handles the movement from page to page). I am pretty sure I am wrong in the placement but I am not sure about it. I am thinking that it needs to go in a servlet but I don't have a true servlet defined anywhere. I have Action classes and form classes. The form classes are used to hold vaules tthat were set in the forms. In my Action Classes I overwrite the execute method of "org.apache.struts.action.Action"
If anyone know's let me know
-Pepper
Where do I place the PrintWriter object to output the context of the webpage?
Right now I have it in my Action class (The actrion class handles the movement from page to page). I am pretty sure I am wrong in the placement but I am not sure about it. I am thinking that it needs to go in a servlet but I don't have a true servlet defined anywhere. I have Action classes and form classes. The form classes are used to hold vaules tthat were set in the forms. In my Action Classes I overwrite the execute method of "org.apache.struts.action.Action"
If anyone know's let me know
-Pepper