<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>
|
如果这样配置,在浏览器输入 http://localhost:8080/project/message,会自动跳转到action中去么