struts2 訪問不存在的action時,自動跳轉

struts 中訪問不存在的action時,默認的會顯示如下頁面:     這顯然不友好。能不能跳轉到統一的action進行處理呢? struts 可以做到。 struts.xml配置文件如下: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD S
相關文章
相關標籤/搜索