调用jsp页面和Action的XML的写法

    <package name="packagename" extends="struts-default">
        
<action name="actionname" method="methodname"  class="classpath">
            
<result name="ERROR">/error.jsp</result>
            
<result type="redirect-action">gotoaction</result>
        
</action>
    
</package>
<result name="ERROR">/error.jsp</result>表示返回ERROR时,调用error.jsp页面

<result type="redirect-action">gotoaction</result>表示返回SUCCESS时,调用gotoaction这个Action
posted on 2008-04-16 13:50  李小鱼  阅读(239)  评论(0编辑  收藏  举报