<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>
如果这样配置,在浏览器输入 http://localhost:8080/project/message,会自动跳转到action中去么
猜你喜欢
本站原创《复杂软件设计之道:领域驱动设计全面解析与实战》