thanks for the reply,
could you possibly explain some of this?
is the name of the attribute under which the form is stored returned by mapping.getAttribute()?
thanks, Brian
From: Jimmy Emmanual <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Subject: RE: How to remove forms from session Date: Wed, 14 Jan 2004 07:22:50 -0500
try this:
if (mapping.getAttribute() != null) { if( "request".equals(mapping.getScope()) ) request.removeAttribute(mapping.getAttribute()); else session.removeAttribute(mapping.getAttribute()); }
-----Original Message----- From: Brian Styles [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 7:19 AM To: [EMAIL PROTECTED] Subject: How to remove forms from session
Hi all,
sometimes I want to force remove form objects that are stored in session. I was trying to do this by using the following code:
HttpSession session = request.getSession( ); session.invalidate();
However, I've seen that this doesn't work and sometimes the object remains in session - and the information is available on the jsp once I go back to it.
So perhaps someone could tell me the correct way to remove form beans from the session object. thanks very much, Brian
_________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

