[ http://issues.apache.org/struts/browse/WW-1271?page=all ]
Rainer Hermanns reassigned WW-1271: ----------------------------------- Assign To: Rainer Hermanns > RequestMap not clearing entries when RequestMap.entries is called. > ------------------------------------------------------------------ > > Key: WW-1271 > URL: http://issues.apache.org/struts/browse/WW-1271 > Project: Struts Action 2 > Type: Bug > Components: Value Stack > Versions: WW 2.2.2 > Environment: any > Reporter: Matt Crawford > Assignee: Rainer Hermanns > Priority: Trivial > Fix For: 2.0 > > Documentation on RequestMap.clear() indicates that request attributes are > cleared as well as entries in the map. > This method needs to set entries=null like code in put and remove methods. > Same issue appears to exist in the following: > com.opensymphony.webwork.portlet.PortletRequestMap > /** > * Removes all attributes from the request as well as clears entries in > this map. > */ > public void clear() { > // ADD HERE > entries = null; > // END ADD HERE > Enumeration keys = request.getAttributeNames(); > while (keys.hasMoreElements()) { > String key = (String) keys.nextElement(); > request.removeAttribute(key); > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]