DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18022>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18022 HttpSessionBindingListener.valueUnbound() called on every request to an ActionForm Summary: HttpSessionBindingListener.valueUnbound() called on every request to an ActionForm Product: Struts Version: 1.1 RC1 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Standard Actions AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The behavior of the Struts RequestProcessor prevents the use of the HttpSessionBindingListener interface to detect a session timeout on session scoped ActionForm beans. When an ActionForm derived bean with session scope implements HttpSessionBindingListener the valueUnbound() and valueBound()methods are called on every client request mapped to that bean. This was observed on Tomcat versions 4.04 and 4.1.18. Apparently, the method org.apache.struts.action.RequestProcessor.processActionForm() calls session.setAttribute()to store the bean in the session even if the bean is already stored there. This causes the servlet container to issue a valueUnbound () call when the existing reference is removed and a valueBound() call when the new reference (to the same bean) is added to the session. This behavior prevents the use of those methods to detect and respond to session timeout events. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
