2009-11-14 112 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

相關問題