VIRGIN FOREST OF JAVA
不要埋头苦干,要学习,学习,再学习。。。。。
powered by R.Zeus

<init-param>
            <param-name>config</param-name>
            <param-value>/WEB-INF/config/struts/struts-config.xml</param-value>
        </init-param>

        <init-param>
                                  //这里表示所有以account开头的*.do都使用下面的配置文件,而在配置文件的
                                       Actionmapping不用加上account。
                                   
            <param-name>config/account</param-name>
            <param-value>/WEB-INF/config/struts/struts-config-account.xml</param-value>
        </init-param>

<action-mappings>
        <action path="/searchAccount" type="com.suzsoft.demo.account.web.AccountAction"
                name="AccountForm" scope="request">
            <forward name="success" path="/../WEB-INF/jsp/account/searchList.jsp"/>
            <forward name="failure" path="/../WEB-INF/jsp/loginSuccess.jsp"/>
        </action> 
                                  //注意..,表示上一层目录,因为已经在account下,所以要回去
                                                              用tiles就不需要了!


    </action-mappings>

posted on 2006-08-08 19:35 R.Zeus 阅读(282) 评论(0)  编辑  收藏 所属分类: STRUTS

只有注册用户登录后才能发表评论。


网站导航: