• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using a HandlerInterceptorAdapter

 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,
I am seeing some behavior that I would not expect, and am hoping someone may shed some light on it. I have a Controller class in my Spring app which returns a url like this when the submit button of the page is clicked :


I have an interceptor class which does this :


I would have expected the Interceptor class to put the new key/value pair into the ModelMap and then to continue forwarding to the original url of


However, what is happening is the key value pair are being added to the end of the url, so when my page comes up I can see this url :


I can not seem to find documentation to explain this behavior and instruct on how to deal with this.
Any help would be greatly appreciated,
Thanks,
Kim
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If it's actually a redirect, though, sent to the browser, wouldn't it need to pass the parameters via the URL (or form)?
 
reply
    Bookmark Topic Watch Topic
  • New Topic