If this is for production, I recommend trying out Jetty

I was very pleased with Jetty's performance over tomcat and it is very 
simple to administer. I was able to drop in my webapp with no 
changes and start it up.

Jeff Painter


On Wed, 31 Mar 2004, Richard Han wrote:

> Thank you guys for your help!
> 
> template.homepage won't do the trick here, because it only gives you the
> default template if turbine's module resolver can't find a template
> AFTER index.vm has been visited (I have previously set it to index.vm
> anyway)
> 
> I am using tomcat as standalone, so apache won't help me here (I use
> iptables to map port 80 to 8080, so users can just use my domain to
> invoke my app)
> 
> I just tried out a way to make it work
> - index.html is still as the welcome page on web.xml
> - make a servlet, all it does is:
>       response.setRedirect(myAppContext/index.vm)
>   
> - in web.xml
>     <servlet-mapping>
>       <servlet-name>redirect</servlet-name>
>         <url-pattern>/index.html</url-pattern>
>     </servlet-mapping>
>   The redirect is the new servlet name, this will redirect the static
> index.html to the turbine's dynamic index.vm, and user won't be able to
> see the index.html anymore.
> 
> comments are welcome!
> 
> richard
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to