struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Gin" <Gin.C...@NielsenMedia.com>
Subject RE: [newbie]: Remving Form Bean from scope
Date Mon, 02 Jun 2003 19:06:24 GMT
Cleans up memory.
Like doing a manual GC (not quite)
Removing it from request scope however doesn't really do much as Struts
SHOULD handle this for you.
-Tim

-----Original Message-----
From: Shyam Anand [mailto:shyam_struts@yahoo.com]
Sent: Monday, June 02, 2003 3:02 PM
To: struts-user@jakarta.apache.org
Subject: [newbie]: Remving Form Bean from scope


Hi,

I'm not sure about the purpose of removing a form bean
from scope in an ActionClass after submitting a form,
as shown below:

##################################################
 // Remove the obsolete form bean
	if (mapping.getAttribute() != null) {
		
            if ("request".equals(mapping.getScope()))
               
request.removeAttribute(mapping.getAttribute());
            else
               
session.removeAttribute(mapping.getAttribute());
#################################################

What will happen if the form bean is not removed from
scope?  Does it affect concurrent access of the
corresponding web page in anyway?

Could somebody throw some light on the topic?

Thanks,
Shyam



__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message