Need to access
HTTP session for fetching as well storing some information.I am using
Spring-MVC for my application and i have 2 options here.
Request/ Sessionin my Controller method and do my work
RequestContextHoldeto access Session information.
I am separating some calculation logic from Controller and want to access Session information in this new layer and for that i have 2 options
- Pass session or Request object to other method in other layer and perform my work.
request/ sessionand perform my work.
I am not sure which is right way to go? with second approach, i can see that method calling will be more clean and i need not to pass
request/ session each time.