Today, I encountered a problem, that is, directly entering http: // localhost: 8080/xxx-admin/hosts, which means that welcome-file-list has a function at all. You can only enter the exact path http: // localhost: 8080/xxx-admin/index.htm.
To solve the problem, we must start with the principle. Therefore, we must first analyze how the welcome-file-list works.
If the index. jsp file does not exist, check whether the file exists, and so on.
It should also be said that welcome-file is not necessarily an HTML or JSP file, or you can directly access an action. As configured above, note that you must create an index. ActionEmpty File(My file has content, so it does not work)And use the struts configuration to redirect. Otherwise, the Web will report the 404 error because the index. Action file cannot be found.
Http://blog.csdn.net/fruithardcandy/article/details/7275019 ()