Reset all form bean elements in one shot

2004-03-05 Thread anant.parnami
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

Re: Reset all form bean elements in one shot

2004-03-05 Thread Geeta Ramani
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

RE: Reset all form bean elements in one shot

2004-03-05 Thread anant.parnami
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

Re: Reset all form bean elements in one shot

2004-03-05 Thread Geeta Ramani
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

RE: Reset all form bean elements in one shot

2004-03-05 Thread Hubert Rabago
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

RE: Reset all form bean elements in one shot

2004-03-05 Thread anant.parnami
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

Re: Reset all form bean elements in one shot

2004-03-05 Thread Geeta Ramani
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

How to reset the form data?

2004-01-23 Thread Zhou, Qin (Eric)
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

RE: How to reset the form data?

2004-01-23 Thread Wendy Smoak
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

Re: How to reset the form data?

2004-01-23 Thread markus baumgartner
] 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

How to reset a form

2003-08-28 Thread Koni
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

RE: How to reset a form

2003-08-28 Thread Cezar Nasui
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

when does STRUTS call reset() on form beans ?

2002-03-25 Thread Maris Orbidans
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]

(further ?) Re: When does STRUTS call reset() on form beans ?

2002-03-25 Thread Dave Newton
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

Re: when does STRUTS call reset() on form beans ?

2002-03-25 Thread Ted Husted
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

Reset the form

2001-06-08 Thread Kiet Nguyen
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?

FW: Reset the form

2001-06-08 Thread Kiet Nguyen
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

Re: Reset the form

2001-06-08 Thread Oleg V Alexeev
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