<global-results>
<result name="error">/Error.jsp</result> <!-- Action.ERROR -->
<result name="invalid.token">/Error.jsp</result>
<result name="login" type="redirectAction">Logon!input</result>
</global-results>
有很多時候一個<result>可供很多<action>使用,這時可以使用<global-results>標簽來定義全局的<result>。
執行順序:當一個Action返回的String沒有相應的<result>與之對應,Struts2就會查找全局的<result>。