Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-02-08 Thread Keith Bacon
It will indeed be called. Ted posted advice on how to deal with this a few weeks ago - try to find it in the archives. Basically reset() needs to know which form was submitted so it can reset only the fields on it. Keith. --- Antony Stace [EMAIL PROTECTED] wrote: Hi Rick Thank you very

Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-02-07 Thread Rick Holland
Did you know that the ControllerServlet calls reset on a form before populating it from the request? If your form reset method clears the instvars it may be the problem. Antony Stace wrote: Hi Chuck I just tried having the first actions scope set to scope="session" and the second actions scope

Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-02-07 Thread Antony Stace
Hi Rick Thank you very much for the reply. On Thu, 07 Feb 2002 13:17:45 -0700 Rick Holland [EMAIL PROTECTED] wrote: Did you know that the ControllerServlet calls reset on a form before populating it from the request? If your form reset method clears the instvars it may be the problem. If

Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-02-01 Thread Chuck Cavaness
That's sort of what I was saying. In the second action, the one that is called after the user sees the form data and makes some choices, does the scope equal to request or session? If you have both of these actions defined as session scope, then I don't believe a new ActionForm would be

Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-02-01 Thread Antony Stace
Hi Chuck I just tried having the first actions scope set to scope="session" and the second actions scope set to scope="session" and still the Vector data is still disapearing. I actually, for a test, set another field in ActionForm in the first action to a test value, I didn't have this set

RE: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-02-01 Thread Fred Livingston
I can't comment on the scope issue; but, I have had similar problems. Think about what is going on. HTML cannot deal with collection and arrays, right. That's why we iterate through them and make our static html page. When the HTML form comes back to the server, the vectors are null because they

Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-02-01 Thread dderry
Hi Chuck, I use Vector all the time. I'm curious why who feel that List/ArrayList is preferable. Dave D - Original Message - From: Chuck Cavaness [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 01, 2002 2:37 AM Subject: Re: Are Vectors in a FormAction set to null after

Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-02-01 Thread Borislav Iordanov
Well, for one thing, Vectors are synchronized and ArrayLists aren't. So the latter are faster (I've heard something like 20% faster) and preferable when you don't need synchronization. Same goes for Hashtable vs. HashMap and in general old vs new collection classes. Boris On Fri, 01 Feb 2002,

RE: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-02-01 Thread Jeff Oberlander
Vector has been refactored to implement List (which extends Collection) - so it is part of the Collection classes. The differnece is just synchronization, which may be necessary in certain cases. They both have their place. -Original Message- From: Borislav Iordanov [mailto:[EMAIL

Are Vectors in a FormAction set to null after a user has submitted a form?

2002-01-31 Thread Antony Stace
Hi I have several variables of type Vector in a FormAction. This form is used on a page where a user can input data, the contents of the Vectors are used to populate drop down list boxes and were populated before the page was displayed to the user. After the user has submitted this form

Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-01-31 Thread Chuck Cavaness
Just guessing, but the reason the Vectors are null is probably because the action that is being called is configured as request scope and not session in the Struts configuration file. Therefore, after the HTML page is drawn (using the Vectors to populate the drop-down boxes), the ActionForm is

Re: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-01-31 Thread Antony Stace
Thanks for the reply Chuck. The action I am calling is the first action after the form has been filled in and the user submits the form. All the data should still be in the form. I can access all the other variables in this ActionForm which are of type String, so I find it strange that the

AW: Are Vectors in a FormAction set to null after a user has submitted a form?

2002-01-31 Thread Hudayioglu, Fehmi
Hi default is session. -Ursprüngliche Nachricht- Von: Antony Stace [mailto:[EMAIL PROTECTED]] Gesendet am: Friday, February 01, 2002 8:46 AM An: Struts Users Mailing List Betreff: Re: Are Vectors in a FormAction set to null after a user has submitted a form? Thanks for the reply Chuck.