乌噜托拉蟒

导航

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

 

以上设置即可~~

 

 

posted on 2013-01-03 16:02  乌噜托拉蟒  阅读(182)  评论(0编辑  收藏  举报