Solution to the failure of welcome-file-List (welcome page)

Source: Internet
Author: User

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 ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.