You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/03/15 00:59:06 UTC
DO NOT REPLY [Bug 18022] New: -
HttpSessionBindingListener.valueUnbound() called on every request to an ActionForm
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: struts-dev@jakarta.apache.org
ReportedBy: pmcgee@xfi.com
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: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org