That doesn't help, I still get velocity template on any URL, and navigating to /velocity/ produces Exception: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/velocity/'
On 8/1/07, Nathan Bubna <[EMAIL PROTECTED]> wrote: > Change the url-pattern under the servlet-mapping for the velocity > servlet to "/velocity/*" instead of "*.vm" > > On 7/31/07, Joe Kramer <[EMAIL PROTECTED]> wrote: > > Helo, > > > > I have existing webapp with mapped on "/" and "/test" > > > > I've added VelocityServlet with sample configuration and now on every > > request it returns velocity template. > > How do I configure VelocityServlet so it answers requests only under > > "/velocity" context? > > > > Here's configuration: > > > > <web-app> > > <servlet> > > <servlet-name>webcontext</servlet-name> > > <servlet-class>MyServlet</servlet-class> > > </servlet> > > <servlet-mapping> > > <servlet-name>webcontext</servlet-name> > > <url-pattern>/</url-pattern> > > </servlet-mapping> > > <servlet> > > <servlet-name>othercontext</servlet-name> > > <servlet-class>MyOtherServlet</servlet-class> > > </servlet> > > <servlet-mapping> > > <servlet-name>othercontext</servlet-name> > > <url-pattern>/test</url-pattern> > > </servlet-mapping> > > > > <servlet> > > <servlet-name>velocity</servlet-name> > > > > <servlet-class>org.apache.velocity.tools.view.servlet.VelocityViewServlet</servlet-class> > > </servlet> > > <servlet-mapping> > > <servlet-name>velocity</servlet-name> > > <url-pattern>*.vm</url-pattern> > > </servlet-mapping> > > <welcome-file-list> > > <welcome-file>index.vm</welcome-file> > > </welcome-file-list> > > </web-app> > > > > > > > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
