Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Access session in macro

Deleted user June 22, 2011

Is it possible to access the container session from within a macro? What could be injected into the constructor to gain access to this?

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Colin Goudie
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 23, 2011

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..

0 votes
Deleted user June 22, 2011
Or, how would I make a value from a filter accessible to a macro?
TAGS
AUG Leaders

Atlassian Community Events