velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Withers John Z <>
Subject RE: Help with VelocityViewServlet
Date Wed, 13 Jul 2005 13:19:32 GMT

Thanks for the information.

Perhaps my application is not well suited to use the VelocityViewServlet.  I
was hoping to use it as a base to get 'free' access to the tool box and to
the servlet logger.

My analysis indicates that the template name I wish to use is not properly
being passed through VeloctiyViewServlet to the underlying Velocity
instance.  My web.xml file looks something like this:



With this configuration, it appears that when I request, VelocityViewServlet is looking for a template
file named 'browse'.  This is not what I want.  Is there an init parameter I
can set to 'force' the template name to a set value?


John Withers

-----Original Message-----
From: Barbara Baughman [] 
Sent: Tuesday, July 12, 2005 4:56 PM
To: Velocity Users List
Subject: Re: Help with VelocityViewServlet

The "not found" error message, at least in tomcat, indicates that the
servlet container can't find the servlet definition in the web.xml
file or it can't find the servlet class anywhere in the classpath.
Be sure the servlet is properly defined in your web.xml file, with
servlet-mapping.  Be sure the servlet class is in the servlet
container's classpath.  Be sure the permissions allow the servlet
container user to read the file.  There has to be something different
between the setup of the servlet that yields this message and the
servlet that doesn't.

If it were the fault of the servlet itself, you'd be getting an
Exception message.

Barbara Baughman

On Tue, 12 Jul 2005, Withers John Z wrote:

> Greetings!
> I've been trying to sub-class the VelocityViewServlet to implement a web
> application I've been working on.  I'm pretty sure I've over-ridden the
> various methods properly, but when I access
> <> , I
> get a message about the /browse resource not being found.  Just to make
> I'm not totally insane, I've implemented my own trimmed down 'View'
> using the same method signatures and approach as VelocityViewServlet.
> one seems to work.  Are there any concrete examples of sub-classes to
> VelocityViewServlet available that might be instructive in this case?
> Thanks!

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message