You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by wb...@Ensign-BickfordInd.com on 2001/12/21 20:16:02 UTC
How do I remove a formBean?
I have an app that shows a form which goes to an actionform object. If
its all okay, it goes to a preview screen and then if you click okay it
goes onto a save actionclass that saves the info. The problem is that I
cannot get it to forget about the formbean when you go back through to
do a second one.
I tried playing with the scope settings to request, but then it forgets
everything if you need to go back from the preview page.
Any ideas? I know it cannot be that hard, but I cannot find anything in
the api or docs.
Thx
Bill Chmura
Ensign-Bickford Industries, Inc.
Information Technologies Department
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How do I remove a formBean?
Posted by Jonathan James <jj...@focus-technologies.com>.
Have you tried putting
session.remove( "beanName" );
in the action that displays the form?
-Jonathan
----- Original Message -----
From: <wb...@Ensign-BickfordInd.com>
To: <st...@jakarta.apache.org>
Sent: Friday, December 21, 2001 1:16 PM
Subject: How do I remove a formBean?
>
> I have an app that shows a form which goes to an actionform object. If
> its all okay, it goes to a preview screen and then if you click okay it
> goes onto a save actionclass that saves the info. The problem is that I
> cannot get it to forget about the formbean when you go back through to
> do a second one.
>
> I tried playing with the scope settings to request, but then it forgets
> everything if you need to go back from the preview page.
>
> Any ideas? I know it cannot be that hard, but I cannot find anything in
> the api or docs.
>
> Thx
>
>
>
> Bill Chmura
> Ensign-Bickford Industries, Inc.
> Information Technologies Department
>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>