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
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
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
>>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
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
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
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
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
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
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,
10 matches
Mail list logo