can't you just configure an index.vm page in your web.xml? On 7/13/05, Withers John Z <[EMAIL PROTECTED]> wrote: > Barbara, > > 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: > > <servlet> > <servlet-name>browse</servlet-name> > <servlet-class>blah.blah.blah.BrowseServlet</servlet-class> > </servlet> > > <servlet-mapping> > <servlet-name>browse</servlet-name> > <url-pattern>/browse</url-pattern> > <servlet-mapping> > > With this configuration, it appears that when I request > http://blah.com/blah/browse, 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? > > Thanks! > > John Withers > > > -----Original Message----- > From: Barbara Baughman [mailto:[EMAIL PROTECTED] > 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 > X2157 > > 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 > > http://server.com/blah/blah/brows <http://server.com/blah/blah/brows> , I > > get a message about the /browse resource not being found. Just to make > sure > > I'm not totally insane, I've implemented my own trimmed down 'View' > servlet > > using the same method signatures and approach as VelocityViewServlet. > This > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
