Struts2的欢迎界面配置action的方法
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
以上设置即可~~