Announcement Announcement Module
Collapse
No announcement yet.
Redirect with Spring:Bind Support Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Redirect with Spring:Bind Support

    Hi--

    On Weblogic 8 using Spring 1.2.2, we use interceptors to trap invalid sessions. Currently, the interceptor will throw ModelAndViewDefiningException with a RedirectView as the underlying view, redirecting the user to the login page. This is OK, but it seems to lose support for Spring:Bind in that all model elements are written as HTTP parameters.

    If I use JstlView (which are used for most of the pages), the Spring:Bind support is there for consistent output of errors to the page. However, this messes things up because the original URL is still used for the subsequent user login post. This URL caused the interceptor to raise an exception in the first place, and it just does it again.

    Is there a way for this to work such that the interceptor causes the user to login once again but posts to the login controller?

  • #2
    You'd have to store your model in the session before the redirect, then remove it when the next page is rendered.

    Comment

    Working...
    X