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