Struts中global-forwards問題

spawnyy發表於2009-10-30


<struts-config>
  <data-sources />
  <form-beans />
  <global-exceptions />
  <global-forwards >
    <forward name="message" path="/shortmessage.do" />

  </global-forwards>

  <action-mappings >
    <action
      path="/shortmessage"
      scope="request"
      type="com.yourcompany.struts.action.ShortmessageAction" />

  </action-mappings>

  <message-resources parameter="com.yourcompany.struts.ApplicationResources" />
</struts-config>

<p class="indent">


如果這樣配置,在瀏覽器輸入 http://localhost:8080/project/message,會自動跳轉到action中去麼

相關文章