In my web app I do utlize the VelocityViewServlet. I use that class in my web.xml file as to where all .vm filews should be mapped to. I have been using the VelocityStruts tools to create my velocity templates. All my pages work fine. Well except for one. The one page that needs data that I collected from other pages within my web app can not output the context that I created.
I will put the details about my problem in a seperate thread. -Paul On 6/20/05, Simon Christian <[EMAIL PROTECTED]> wrote: > Hi Paul, > > The VelocityServlet is all but deprecated now, with the recommended > starting point being the VelocityViewServlet/VelocityLayoutServlet instead. > > I'd strongly suggest you look at the whole of the VelocityStruts > sub-project (http://jakarta.apache.org/velocity/tools/struts/) which > uses the VelocityViewServlet for processing of templates. This includes > some pretty good documentation showing you how to get started. > > In very basic terms, you populate the (request) context within your > Struts actions, and then forward the request to a Velocity template > which is processed by the VelocityViewServlet to print your output to > the client. Note that Struts need have no idea that Velocity is being > used for the View. > > - s > > > Paul Goepfert wrote: > > I have written a servlet that extends from VelocityServlet. I am not > > sure how to intergrate it into my velocity/struts app. As of now all > > my actions such as moving from page to page are handled by struts > > using the VelStruts tool, $link.setAction(). I have been reading up > > on velocity from a book called "Mastering Apache Veloicty". The book > > helped me out a lot. The only thing that I noticed was that there was > > no reference to a struts/velocity web app. I also bought a book on > > struts. In that book there is a paragraph on velocity but nothing to > > show me how to utlize struts/velocity together. > > > > Would someone please show me a way to intergrate my new class into my > > struts app. I should tell you that I have overwritten the > > handleRequest method in VelocityServlet. > > > > > > -Paul > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]