Hello Shinabu. Domo arigato for the advice and link. From doing a few googles the fact that the velocity trivial examples appear not to work when run against the latest versions of Tomcat seems to be a source of consternation for many. In my case, I am new to webapps, velocity, tomcat, and even Java - so you can imagine how little confidence I would have that I was doing anything right! I think it would be most helpful if your good advice were incorporated into the Velocity readme.txt files for the examples for the benefit of unseasoned developers such as myself.
----- Original Message ----- From: "Shinobu Kawai" <[EMAIL PROTECTED]> To: "Velocity Users List" <[email protected]> Sent: Thursday, December 30, 2004 5:35 PM Subject: Re: Problem on using Velocity with Servlet > Hi William, > > > I have Win2K/XP Embedded - > > I spun my wheels for a few days trying to get Velocity/1.4 to run under > > Tomcat/5.5.4. The invoker servlet and servlet-mappings are both commented > > out in Tomcat/5.5.4 web.xml file but uncommenting these didn't make any > > difference. I tried falling back to Tomcat/5.0.28 but that didn't help. I > > had to drop all the way back to Tomcat/4.1.31 which only had the > > servlet-mapping for invoker commented out. So, apparently there is a > > problem with the Tomcat/5.x.x series with respect to the invoker that is > > more profound than simply uncommenting the servlet and servlet-mapping tags > > for the invoker. I'd rather be using Tomcat/5.5.4 if anyone knows how to > > fix the invocation... > > You do not want to use the invoker servlet to render Velocity > templates. Use the VelocityViewServlet. Documentation for web.xml > settings (and much, much more :)) can be found here: > http://jakarta.apache.org/velocity/tools/view/ > > Best regards, > -- Shinobu > > -- > Shinobu "Kawai" Yoshida <[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]
