passing values from controller to filter
I like to pass values from a spring controller to a filter without using session. suggestions please..
From the firs开发者_开发问答t controller I set the values to the request and showing a page. Some jsp pages included with this view (using tiles) is using this attributes. When I try to access this values from this controllers, it is null .
Add an attribute to the request in your controller (using request.setAttribute(...)
), then fetch it in the filter (using getAttribute(...)
).
(Answer is as lacking in detail as the question...)
精彩评论