2009-11-14 63 views
0

是否有一种简单的方法将URL“mysite /”的所有请求(除了一些特定情况)都路由到路径“mysite/index.html?” 只有通过编辑web.xml文件才能做到这一点吗?如何为java web应用程序配置路由

回答

3

你尝试将其指定为欢迎文件在您的web.xml

<welcome-file-list> 
    <welcome-file>index.html</welcome-file> 
</welcome-file-list> 
+0

是的。这个valie被指定了......对不起,我的消息被修改了:我想将“mysite/some_key”重定向到“mysite/index.html?some_key” – Solvek 2009-11-14 16:15:44

相关问题