Announcement Announcement Module
Collapse
No announcement yet.
public void valueUnbound(HttpSessionBindingEvent event) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • public void valueUnbound(HttpSessionBindingEvent event)

    public void valueUnbound(HttpSessionBindingEvent event)

    can someone explain to me when this meathod gets called.

    i thought it got called after the time specified by

    (HttpServletRequest).getSession().setMaxInactiveIn terval(int i);


    but for me
    public void valueUnbound(HttpSessionBindingEvent event)
    its been called every time a user does an action like click a link or a button.

  • #2
    That method gets get called every time the registered object gets removed from the session, either programmatically or via timeout.

    So when your user clicks the link or button, is the object being removed from the session?

    If you are using a session form and your command object is the object that's registered with the listener, then yes it is removed from the session every time you pass through the controller. It's added back in if validation fails. So you would see the unbound event fire off every time.

    Bob

    Comment

    Working...
    X