RE: cant reset form

2005-11-10 Thread Garner, Shawn
truts Users Mailing List Subject: cant reset form Hello I have an app with three fields on the form. It all works fine and I even have the Reset method assigning blank strings. The problem, Reset never works. I submit the form and the form values do not clear. This is even more unbelievable, I

Re: cant reset form

2005-11-09 Thread Chris Pat
Hi Paul Sorry. The more I think about there are probably better and more secure ways to do and not to do it. I was thinking of form with fields that "remembered" the last n number of entries and made then available on a combo box in the field for repeated entry. It definitely would not be good f

RE: cant reset form

2005-11-09 Thread David G. Friedman
Sent: Thursday, November 10, 2005 12:10 AM To: Struts Users Mailing List Subject: Re: cant reset form Hi Paul A very complete and informative answer. I learned. Thanks. Not to be greedy, however is it possible to have a form dynamically save and make selectable the previous field entries? From

Re: cant reset form

2005-11-09 Thread Paul Benedict
>>Not to be greedy, however is it possible to have a >>form dynamically save and make selectable the previous >>field entries? You need to be more clear. I don't understand this. __ Yahoo! FareChase: Search multiple travel sites in one click. h

Re: cant reset form

2005-11-09 Thread Chris Pat
Hi Paul A very complete and informative answer. I learned. Thanks. Not to be greedy, however is it possible to have a form dynamically save and make selectable the previous field entries? From this discussion it seems like no. Is that something you would do in the ActionForm? Broadly speaking

Re: cant reset form

2005-11-09 Thread Paul Benedict
Pat, forms are stored in the sesion. If you want to reset it, simply remove it from the session like the following: request.getSession(false).removeAttribute("yourFormName"); The next time Struts invokes the action, it will re-create it if it is missing. So you're learning the downside of using

Re: cant reset form

2005-11-09 Thread Chris Pat
Thanks Pat & rajasekhar I will do that. However is there a way to stop the serialization or force the clearing of the form fields and keep the session otherwise instantiated? I can see the need store/create objects in the session, possibly with a form bean, but want my fields clear. Just a newb

Re: cant reset form

2005-11-09 Thread rajasekhar . cherukuri
Hi Chris, Why don't you try making the scope of the form as "request" ? Chris Pat <[EMAIL PROTECTED]> 11/10/2005 09:33 AM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject cant reset form Hello I have an ap

Re: cant reset form

2005-11-09 Thread Paul Benedict
Pat, It's possible by restarting the tomcat server, you're serializing the session -- it's called a "sticky session" -- which sticks around between restarts. I am not aware of anyone using reset(). If you also need to clear the form fields, why not use a request scope form? It sounds like you

cant reset form

2005-11-09 Thread Chris Pat
Hello I have an app with three fields on the form. It all works fine and I even have the Reset method assigning blank strings. The problem, Reset never works. I submit the form and the form values do not clear. This is even more unbelievable, I down TC, recompile the war, place it in webapps,