Accessing Java EE Scope Objects

From Documentation
Revision as of 06:10, 1 February 2024 by Hawk (talk | contribs) (→‎getCurrent)


Accessing Java EE Scope Objects



Executions

org.zkoss.zk.ui.Executions

getCurrent

Executions.getCurrent()

Retrieves the current execution which contains HTTP request/response.


get HttpServletRequest

HttpServletRequest req = (HttpServletRequest)Executions.getCurrent().getNativeRequest()

getNativeRequest()

Sessions

org.zkoss.zk.ui.Sessions

getCurrent

Sessions.getCurrent()

Retrieves the current session.



Last Update : 2024/02/01

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.