Hi,
I wanted to know if there is any way in which we can reset all the
elements of the form bean without giving individual resets all the time
for e.g I have 4 elements in my form bean. say A,B,C,D I am interested
in resetting all the four without giving
resetAllElements() {
A = null
B = null
Anant: So a brand new form bean won't do the job..?
Geeta
[EMAIL PROTECTED] wrote:
Hi,
I wanted to know if there is any way in which we can reset all the
elements of the form bean without giving individual resets all the time
for e.g I have 4 elements in my form bean. say A,B,C,D I am
How to remove the form bean element from the session if that's the case
-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 06, 2004 2:14 AM
To: Struts Users Mailing List
Subject: Re: Reset all form bean elements in one shot
Anant: So a brand new form
To: Struts Users Mailing List
Subject: Re: Reset all form bean elements in one shot
Anant: So a brand new form bean won't do the job..?
Geeta
[EMAIL PROTECTED] wrote:
Hi,
I wanted to know if there is any way in which we can reset all the
elements of the form bean without giving individual
You can also check if the form bean's reset() method can do the job for you.
--- [EMAIL PROTECTED] wrote:
How to remove the form bean element from the session if that's the case
-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 06, 2004 2:14 AM
Thanks
I never thought it would be as simple as this... :-)
Why didn't I think of this before..:-(
-Original Message-
From: Geeta Ramani [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 06, 2004 2:22 AM
To: Struts Users Mailing List
Subject: Re: Reset all form bean elements in one shot
Anant:
[EMAIL PROTECTED] wrote:
Thanks
I never thought it would be as simple as this... :-)
Why didn't I think of this before..:-(
If each of us had a penny for every time we thought this, we'd be all set for early
retirement in the
bahamas..:)
Geeta
Hi
I create a form bean. I need to reset some fields to default value after each submit
instead of remembering user's input. What's the easy way to do this?
Thanks
Eric
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Eric wrote:
I create a form bean. I need to reset some fields to default
value after each submit instead of remembering user's input.
What's the easy way to do this?
The easiest way is to put the form in request scope, which will work
fine until you use the Validator, at which time you'll
]
To: [EMAIL PROTECTED]
Sent: Friday, January 23, 2004 1:24 PM
Subject: How to reset the form data?
Hi
I create a form bean. I need to reset some fields to default value after
each submit instead of remembering user's input. What's the easy way to do
this?
Thanks
Eric
up.
How can I reset a form in my Action? I tryed the method form.reset() but
it still shows the old values.
Any Ideas to show the new values? Has someone similar problems?
Thanks
Koni
-
To unsubscribe, e-mail: [EMAIL PROTECTED
Message-
From: Koni [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 11:01 AM
To: [EMAIL PROTECTED]
Subject: How to reset a form
I have a form with two select boxes. When I change something in selectbox_1
the selectbox_2 changes also (by javascript). After successful saving the
stuff I
Does it depend on scope of a session bean ?
thanx in advance
Maris Orbidans
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Maris Orbidans asked:
Does it depend on scope of a session bean ?
On a related note, I have a simple form with two text fields, a regular ol'
form bean, and an action. If the action doesn't validate, it goes back to the
form, and the form values are gone. Did I miss something? I thought that
In 1.0, reset is called just before the servlet autopopulates the bean
from the request. In 1.1 beta, it is also called when an html:form tag
instantiates the bean (not finding one in the request).
If an Action forwards to another action-mapping, reset is called again
since the controller will
I have my reset button defined:
html:form action=/queryOrg
html:image src=images/reset.gif width=113 height=24
property=reset/
Why is that the reset method doesn't get call and the Action class get
executed.
Anyone with an example?
I'm able to define my reset button as follow, but how do I add the image to
this button.
The reset tag doesn't have src property.
html:resetthanks/html:reset
-Original Message-
From: Kiet Nguyen
Sent: Friday, June 08, 2001 10:08 AM
To: Struts-User (E-mail)
Subject: Reset the form
I
Hello Kiet,
Friday, June 08, 2001, 9:08:07 PM, you wrote:
KN I have my reset button defined:
KN html:form action=/queryOrg
KN html:image src=images/reset.gif width=113 height=24
property=reset/
KN Why is that the reset method doesn't get call and the Action class get
KN
18 matches
Mail list logo