The use of Struts2 's Defalut-action-ref

Source: Internet
Author: User

 1   2  3  general Default-action- 4  5   But it's worth noting when it's known under your project as index.html Index.jsp,welcome.html, etc. appears in the Web. xml file, at this time the URL  6  7   input only to the project name does not jump to the default action but jumps to the specified page because:  8  9  personal feel that the name and name does not exist after the item in the address bar are two concepts, You can change the index.jsp to other names, such as aaa,bbb.jsp. At this point, when the server is started and loaded, will be based on Web. XML to find the so-called index.jsp, but because index.jsp has been modified by our name, then certainly will not find, and entered into strtus.xml, then we define the DEFAULT-ACTION-REF can function, at this time because there is no corresponding home page configuration, The browser enters the default reference, and you can implement the action directly into the action 

The use of Struts2 's Defalut-action-ref

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.