另外一个重要的问题就是,获取页面B的内容是在一个单独的请求中,这样就没有办法从A页面中传递任何的请求范围(request-scoped)数据,在这样的目的使用request范围的变量非常方便,也是很常用的。
基于28个网页-相关网页
Modern web frameworks have session and request scoped components and handle the dependency injection for them as those scopes come into life.
现代Web框架还有会话、请求等不同作用域范围的组件,框架会在进入作用域的时候相应地处理依赖注入。
The ODRs will route the incoming HTTP requests in an “application scoped” fashion to any target server capable of servicing the request.
ODR 将以 “应用程序为作用域” 把传入的 HTTP 请求路由到任何能够处理请求的目标服务器中。
A downside of the Open Session in View pattern is that the persistence-context object is effectively scoped to a user request.
Open Session in View模式的一个缺点是持久化上下文对象被高效地划定到用户请求作用域内。
应用推荐