Results 1 to 2 of 2

Thread: Intereceptors and useless GET parameters

  1. #1
    Join Date
    Dec 2004
    Posts
    2

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    Mutru,

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

    HTH
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •