Dec 25th, 2004, 11:12 AM
Intereceptors and useless GET parameters
I'm using a HandlerInterceptorAdapter to postHandle my pages. I'm new to Spring, but I figured out this would be a somewhat sensible way to add some data (customer information etc.) to all my pages.
Basically everything works fine, I can add objects to my ModelAndView and they appear in the (Velocity) view. However, when those objects are added in my interceptor, they also end up being useless GET parameters in the URL. Something like:
When I add objects to my ModelAndView in a normal handler (controller), this doesn't happen. Why is interceptor different and is it possible to disable this behaviour?
Dec 25th, 2004, 06:44 PM
What Spring version are you using?
Basically, the objects are shown in the URL when you issue a redirect.