开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜