coder247
coder247

Reputation: 2943

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

Upvotes: 1

Views: 1530

Answers (1)

skaffman
skaffman

Reputation: 403581

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

Upvotes: 7

Related Questions