You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Ben <ne...@gmail.com> on 2004/10/09 09:08:50 UTC

Using Velocity without file extension

Can I use the following servlet-mapping and will this affect the
peformance of the system?

<servlet-mapping>
	<servlet-name>velocity</servlet-name>
	<url-pattern>/*</url-pattern>
</servlet-mapping>

I would like to achieve this:

http://localhost/index

instead of:

http://localhost/index.vm

Thanks,
Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: Using Velocity without file extension

Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Ben,

> Can I use the following servlet-mapping and will this affect the
> peformance of the system?
> 
> <servlet-mapping>
>        <servlet-name>velocity</servlet-name>
>        <url-pattern>/*</url-pattern>
> </servlet-mapping>
You can set url-pattern to "/", and make it the default servlet.
## For some reason, "/*" and "*" didn't work on Tomcat 5.5

> I would like to achieve this:
> 
> http://localhost/index
> 
> instead of:
> 
> http://localhost/index.vm
I'll leave the performance part of the question to the other guys.  I
don't care about speed until somebody says, "It's slow".  :)

Best regards,
-- Shinobu Kawai

-- 
Shinobu Kawai <sh...@gmail.com>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org