struts 1.x
我總是定義一個struts表單動作映射,範圍=「請求」,除非強制進入會話。示例:struts 1.x表單範圍,爲什麼請求範圍更快?
<action
path="/hello/my/oldfriend"
type="com.imFine.HowAreYouAction"
name="greetingActionForm"
scope="request"
validate="true"
input="/the/front/door">
<forward
name="success"
path="/go/get/drinks.do" />
</action>
如果將此操作映射從請求範圍轉換爲會話範圍,那麼我幾乎總能看到性能下降。什麼是額外的方法調用struts servlet導致會話範圍的表單bean額外的工作量?
我最終在這裏找到了struts文檔,[Struts 1.x Request Processor](http://struts.apache.org/1.x/userGuide/building_controller.html)。具體到第4.2.1節。使用這些信息和你的答案是完美的 – DefyGravity