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