1.struts.xml中
<action name="index" class="com.anakin.action.MainAction" method="index">
<result name="success">/index.jsp</result>
</action>
2.web.xml中
<welcome-file-list>
<welcome-file>index.action</welcome-file>
</welcome-file-list>
3.新建一本空文件,文件名:index.action
以上设置即可~~
转载于:https://www.cnblogs.com/mig3719/archive/2013/01/03/2843051.html