Create session scope variables.
创建会话范围变量。
Initialize the session scope variable.
初始化会话范围变量。
选择session scope。
To the servlet, this is the normal Session scope.
对于Servlet,这是正常的会话范围。
Use session scope to provide stateful user experience.
为了提供有状态用户体验,使用session作用域。
Use it to create a unique scope key for this session scope.
使用它为会话范围创建惟一的范围键。
The WeatherForecast bean is designed to operate with session scope.
WeatherForecastbean被设计成在会话范围中运行。
Then, the script tries to get the bean instance from the session scope with getBean().
之后,脚本试图用getBean()从session范围获得这个bean实例。
Now say you want to keep an instance of DemoBean (see Listing 22) in the session scope.
现在,假设您想要在session范围内保存DemoBean(参见清单22)的一个实例。
Perhaps the most significant change to the servlet specification has to do with session scope.
Servlet规范最重大的变化与会话范围有关。
The code that will invoke the EJB component and store the data in the session scope is shown below.
下面所示的这些代码将会调用 EJB组件并将数据存储在会话范围之内。
We also explained how to generate cache keys for the two use cases session scope and portlet window scope.
还说明了如何为两个用例会话范围和Portlet窗口范围生成缓存键。
The bean has session scope, which makes sense for something used to track if the user is logged in or not.
bean具有session域,这样对用户是否登录进行跟踪才有意义。
At that point, all objects bound to this session scope should be automatically released back to their pools.
这时,与这个范围相关联的所有对象被自动释放回它们的池。
The application stores a list of Places, depicted in Figure 1, in session scope and maintains a Place in request scope.
应用程序在会话范围内存储了一组Place,如图1所示,并在请求范围内维护了一个Place。
Use it to notify object managers that a session scope has ended (or is about to end) and to release the corresponding objects.
使用它通知对象管理器会话范围已经结束(或即将结束),应该释放对应的对象。
Join activity session - Determines whether the target service is willing to join the propagated activity session scope. Values.
Joinactivitysession-确定目标服务是否愿意加入传播的活动会话范围。
With the conversation scope in the picture, the need for the session scope is a rarity, and you can use it more deliberately.
借助conversation作用域,几乎不再需要使用会话作用域,并且您可以更为随意地使用。
Generating session scope cache keys is simple and cheap because the session provides you with a specific id that can be leveraged.
生成会话范围缓存键很简单,开销也很低,因为会话向您提供了可以使用的特定ID。
The Listing 12 code snippet creates an oConnectionInfos object, initializes it with your username and password values, and then sets it in session scope.
列表12代码片段建立了一个oConnectionInfos对象,使用您的用户名和密码初始化了这个对象,然后将其设置在会话范围中。
Proper handling of session scope — that is, the context of the data being stored and maintained in a session — is key to stateful application development.
对会话作用域(即在一个会话中存储和维护的数据的上下文)的适当处理是有状态应用程序开发的关键。
It explains how to initialize the session scope variable to display the data corresponding to the initial value of the Combo Box control at application startup.
本文阐述了如何初始化会话范围变量,使之显示出与应用程序启动时ComboBox控件的初始值相对应的数据。
Most of the time when an Out Of Memory exception occurrs it is caused by a design problem, where either too much memory is stored in cache or session scope.
发生内存溢出在大多数情况下是因设计问题引起的,太多的内存存储在缓存或Session中。
If you pull down the combination (combo) box, you'll see that you can store the output property in several different scopes, such as parameter or session scope.
如果您拉下这个组合框,您将会发现您能够把输出属性存储在几个不同的领域,比如参数或者话路领域。
And because each global variable has session scope, every session has its own private value that it can manipulate and use and no other session can access that value.
并且由于每个全局变量以会话为范围,所有会话都拥有自己的私有值进行操作和使用,而其他会话无法访问这些私有值。
This code will call an existing EJB component that will return the AccessStockVO object, which we will store in the session scope where our data grid component expects.
这些代码会调用一个现有的EJB组件,此组件会返回AccessStock VO对象,我们将把此对象存储在数据网格组件所要求的会话范围内。
Unfortunately, the JSF specification naively leads developers down a path of placing most backing beans in session scope -- you could even call it "convenient" scope.
不幸的是,JSF规范天真地引导开发人员将大多数backingbean 放入 conversation 作用域中 ——甚至可以在 “方便的” 作用域内调用它。
The varBrokerUpdateRootBean, a session scope JSF managed bean from the session, is removed from the session, such that the bean is repopulated from new data on the next invocation.
会话的受JSF管理的会话范围bean,它将从该会话中移出,以便该 bean 从下一个调用的新数据中重新写入。
In addition to creating request scope keys, MyRequestProcessor needs to get the application scope key and session scope key and store them in a RequestContext object before a request is processed.
除了创建请求范围键之外,在处理请求之前,MyRequestProcessor需要获得应用程序范围键和会话范围键,并把它们存储在RequestContext对象中。
During an initial session I discussed the requirements and scope of the migration and looked into the input data.
在初始会话期间,我讨论了移植的需求和范围,并且查看了输入数据。
应用推荐