Re: Resetting session scope form bean values

2010-04-03 Thread Dave Newton
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

Resetting session scope form bean values

2010-04-02 Thread pundarik rajkhowa
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

Re: Session scope Form-resolved

2006-09-27 Thread Matts
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,

Re: Session scope Form

2006-09-27 Thread Adam J Samere
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

Re: Session scope Form

2006-09-27 Thread Wendy Smoak
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

Re: Session scope Form

2006-09-27 Thread Matts
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

Re: Session scope Form

2006-09-27 Thread Wendy Smoak
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

Session scope Form

2006-09-27 Thread Matts
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???

Re: Session Scope-Form Bean Reset Method Executing Every Request

2005-05-08 Thread Aladin Alaily
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

Re: Session Scope-Form Bean Reset Method Executing Every Request

2005-05-08 Thread Adam Hardy
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

Session Scope-Form Bean Reset Method Executing Every Request

2005-05-08 Thread Mehmet E.
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... ___

Session scope form and saveErrors

2004-12-17 Thread Ben
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