Is it possible to access the container session from within a macro? What could be injected into the constructor to gain access to this?
Community moderators have prevented the ability to post new answers.
You can probably find what you need in ServletActionContext.getRequest() and similar methods.
Also take into account if the macro is rendered in other views rather than a page. Such as HTML, PDF etc..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.