Jan 23rd, 2009, 12:05 PM
Accessing data model set defined in a controller using a servlet filter
Is there a way to access a data model set in the spring mvc controller using a servlet filter?
If i have a data model "testObject" defined in a spring mvc controller
How to get the reference of "testObject" in a servlet Filter.?
Thanks in advance.
Jan 23rd, 2009, 01:35 PM
OK, the issue was because of the URL mapping for the servlet filter.
By applying the filter only to the specific URL, I was able to access the model data just by using request.getAttribute("modelObjName")