Announcement Announcement Module
Collapse
No announcement yet.
Common Model Objects Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Hey John,

    But if you think about it, they are two very different things to test. The interceptor is just adding information to the model-and-view based on the view type, while the controller is actually preforming the logic for the page requested.

    I am sure you could try to create a DispatcherServlet and run a controller test, but it sounds like more hassel than it would be worth.

    Josh

    Comment


    • #17
      Redirect querystring has model info

      Originally posted by joshk View Post
      Be warned, if you add common model data and then redirect, the model data will be appended to the query string
      Here's another way to prevent model information from being appended to the querystring upon "redirect:". It's a workaround. Don't issue the Spring "redirect:" - use response.sendRedirect() instead.

      Comment

      Working...
      X