Announcement Announcement Module
Collapse
No announcement yet.
Intereceptors and useless GET parameters Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Intereceptors and useless GET parameters

    Hi,

    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:

    /myapp/foo?customer=com.foo.bar.Customer=%4012345

    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?

    Thanks,
    Mutru

  • #2
    Mutru,

    What Spring version are you using?
    Basically, the objects are shown in the URL when you issue a redirect.

    HTH

    Comment

    Working...
    X