开发者

passing values from controller to filter

开发者 https://www.devze.com 2023-03-03 18:23 出处:网络
I like to pass values from a spring controller to a filter without using session. suggestions please..

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

0

精彩评论

暂无评论...
验证码 换一张
取 消