You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Craig R. McClanahan" <cr...@apache.org> on 2001/06/02 07:25:10 UTC
Re: Removing session-scoped form from the session
On Fri, 25 May 2001, Fabien Modoux wrote:
> I would like to know how I can remove a session-scoped form
> from the current session once I don't need it anymore. Is it
> stored in the session under the form-bean.name attribute in
> the struts-config.xml file? If yes, removing the form from
> the session makes it available for other requests directly?
>
Yes, it's stored under the "name" value you list, so just call:
session.removeAttribute("formbeanname");
to remove a bean named "formbeanname".
> Thanks,
>
> -Fabien Modoux
>
Craig