I’d like to add map as attribute to spring’s servlet and get its values like attributes in request or session model (${map[‘key’]}). How can I add this map?
Found one method as interceptor. Are there another solutions?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Interceptors are the appropriate and intended way to pre-process requests and apply logic globally. They are analogous with filters in a pure servlet environment and should be thought of in the same way.
Create your own interceptor and decorate or add attributes to you request in there.