I am trying to put some logic based on the value of a variable in session storage, based on session storage value i need to read some OSGI configuration. I am putting the read logic in use-API of HTL like below.
The window objects are just provided by web-browsers and are not part of the ECMAScript standard which Rhino implements. They are there to allow a script to access the current browser window and the HTML document. The document object is actually an implementation of the W3C DOM.
The local storage, as its name indicates, stores information locally, which means in the browser, at client-side. The JS server API executes at server-side. There is no way to access the local storage at server-side.