struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shyam Anand <shyam_str...@yahoo.com>
Subject [newbie]: Remving Form Bean from scope
Date Mon, 02 Jun 2003 19:01:39 GMT
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


Mime
View raw message