This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Spring and the fly likes Using a HandlerInterceptorAdapter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Using a HandlerInterceptorAdapter" Watch "Using a HandlerInterceptorAdapter" New topic
Author

Using a HandlerInterceptorAdapter

Kim Kantola
Ranch Hand

Joined: May 17, 2001
Posts: 276
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
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If it's actually a redirect, though, sent to the browser, wouldn't it need to pass the parameters via the URL (or form)?
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Using a HandlerInterceptorAdapter
 
It's not a secret anymore!