pundarik rajkhowa wrote:
After I submit the form and open it again for new data entry,
the form retains its old values. If I call form.reset(), it fails to clear
the bean. Do I need to override the reset method and manually clear values
of all bean elements?
Yes--that is the purpose of the rese
Hi,
I have a data entry form implemented as a DynaActionForm form bean in
session scope. After I submit the form and open it again for new data entry,
the form retains its old values. If I call form.reset(), it fails to clear
the bean. Do I need to override the reset method and manually clear valu
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, 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???
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
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.
Thanks...
___
Hi
I am using Velocity 1.4 with Struts 1.2.4.
I have a session scope form and I save the error messages using
saveErrors(HttpServletRequest, ActionMessages) after I validated the
form manually. How do I display the error messages in my velocity
page?
For my other request scope forms, I use the
12 matches
Mail list logo