Thanks, it has worked well.
- Original Message -
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" ; "Matts"
<[EMAIL PROTECTED]>
Sent: Wednesday, September 27, 2006 12:17 PM
Subject: Re: Session scope Form
On 9/27/06,
You can remove a form from the session the same way you your remove any
session scoped attribute.
request.getSession(false).removeAttribute(mapping.getName());
You are usually better off letting the Struts framework instantiate and
initialize the form for you. Particularly with Dynamic Form Be
On 9/27/06, Matts <[EMAIL PROTECTED]> wrote:
That's a good idea, thanks. But how can i remove de form from de session???
The signature of the Action execute method gives you the request and
the action mapping.
From the request, you can get the session. From the action mapping,
you can get
That's a good idea, thanks. But how can i remove de form from de session???
- Original Message -
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, September 27, 2006 12:03 PM
Subject: Re: Session scope Form
On 9
On 9/27/06, Matts <[EMAIL PROTECTED]> wrote:
Hi, I have a session scoped form and I want to destroy it and create for
creating a new one in a certain action. How can I perform this???
In general, instantiating form beans is best left to the framework.
Try removing it from the session when yo
Hi Mehmet,
The reset method of your form bean will be executed every time it passes
through the controller on a redirect, which is handled as a new request.
As such, if you do not want to have the reset method called you should
forward your pages rather than redirecting them (I don't think this
On 08/05/05 13:09 Mehmet E. wrote:
Form Bean scope is session. In every request form bean
RESET method is executing. I am useing struts with
tiles. There is no code for removing form bean from
session. As i know, it must execute one times per
session after creation of form bean.
Mehmet, I never u
7 matches
Mail list logo