There are many ways to get session object in struts2. Which one is best and recommended approach to get session object from the following?.
- ActionContext
- SessionAware
- Getting Request from ServletRequestAware and after session from request object.
Now I am using ServletRequestAware for getting session object in all actions even though request object is not needed.
Which one is best and Why it is best?
Thanks in advance