The reset should change all values on your jsp page to those matching the
html page, which would be populated by your ActionForm.
In other words, if you haven't changed any of the values on your web page,
then the reset would appear to do nothing. Is that the behavior you're
expecting, or are y
ny.
-Dave
-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 3:14 PM
To: Struts Users Mailing List
Subject: Re: Reset button.
isReset() who's method is that, action, form?
I can't seem to find it.
-Gus
Jacky Kim
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 3:14 PM
To: Struts Users Mailing List
Subject: Re: Reset button.
isReset() who's method is that, action, form?
I can't seem to find it.
-Gus
Jacky Kimmel wrote:
if (isReset(httpServletRequest))
3:14 PM
> To: Struts Users Mailing List
> Subject: Re: Reset button.
>
>
> isReset() who's method is that, action, form?
>
> I can't seem to find it.
>
> -Gus
> Jacky Kimmel wrote:
>
> >if (isReset(httpServletRequest))
> > {
> >
isReset() who's method is that, action, form?
I can't seem to find it.
-Gus
Jacky Kimmel wrote:
if (isReset(httpServletRequest))
{
return actionMapping.findForward(Constants.D_RESET);
}
As you can see, I had a constants class that I refer to. Also, in the struts-config.xml I have
if (isReset(httpServletRequest))
{
return actionMapping.findForward(Constants.D_RESET);
}
As you can see, I had a constants class that I refer to. Also, in the
struts-config.xml I have mapped this forward back to the original jsp. I put this
snippet of code in the beginning of
how do I check for the reset in the Action?
Jacky Kimmel wrote:
It sounds like your action does not check to see if the reset was clicked or not. What I have done is do this check at the beginning of all my action classes. If the reset has been selected then the action is redirected to the emp
Yeah, the reset button will return the form elements to their initial state. If the
initial state includes values, i.e. , then
clicking reset will set the value of this element to "someValue", it's original value.
One solution is to write a function that loops throught the form elements and se
An html reset button resets all form fields to their initial values. Look
at your html source and you will see something like
The reset button is functioning properly.
David
From: Gus Delgado <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mail
It sounds like your action does not check to see if the reset was clicked or not.
What I have done is do this check at the beginning of all my action classes. If the
reset has been selected then the action is redirected to the empty jsp. It sounds
like your action mapping may also not be cor
That's a good idea. I too wanted to avoid dirty javascript :)
Thanks
Priyank
-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 1:34 PM
To: 'Struts Users Mailing List'
Subject: RE: Reset button does
x57787 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 1:24 PM
To: 'Struts Users Mailing List'
Subject: RE: Reset button does not invoke the FormBean's reset()
Thanks James.
I greatly appreciate your help.
-Original Message-
From: James Mitchell [mailto:[EM
Thanks James.
I greatly appreciate your help.
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 12:10 PM
To: Struts Users Mailing List
Subject: RE: Reset button does not invoke the FormBean's reset()
Ok, then what are wanting is &
; -Original Message-
> From: Gupta, Priyank x57787 [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 01, 2002 11:29 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Reset button does not invoke the FormBean's reset()
>
>
> Hey,
>
> This explanation
e radios should clear." How to do that ?
Thanks
Priyank
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 11:20 AM
To: Struts Users Mailing List
Subject: RE: Reset button does not invoke the FormBean's reset()
I'm t
:[EMAIL PROTECTED]]
> Sent: Thursday, August 01, 2002 10:52 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Reset button does not invoke the FormBean's reset()
>
>
> Hey
> I am using the reset button and it's not working .
> Try to be serious on
August 01, 2002 10:46 AM
To: Struts Users Mailing List
Subject: RE: Reset button does not invoke the FormBean's reset()
Yes, use the reset button...
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open
ay, August 01, 2002 8:45 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Reset button does not invoke the FormBean's reset()
>
>
> Hi JML,
> Thanks for your response. I think using property="reset"/>
> will post the form and take me to the n
sorry no idea, have i had a solution to my problem, I didnt look further :)
JML
[EMAIL PROTECTED]
-Original Message-
From: Gupta, Priyank x57787 [mailto:[EMAIL PROTECTED]]
Sent: jeudi 1 août 2002 14:45
To: 'Struts Users Mailing List'
Subject: RE: Reset button does not
-Original Message-
From: Leblon Jean-marc [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 4:14 AM
To: Struts Users Mailing List
Subject: RE: Reset button does not invoke the FormBean's reset()
If i understand your problem, I had same problem last week, this is my
solution
i
A
B
JML
[EMAIL PROTECTED]
-Original Message-
From: Gupta, Priyank x57787 [mailto:[EMAIL PROTECTED]]
Sent: jeudi 1 août 2002 00:04
To: 'Struts Users Mailing List'
Subject: RE: Reset button does not invoke t
rom: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 5:46 PM
To: Struts Users Mailing List
Subject: RE: Reset button does not invoke the FormBean's reset()
Ok, first of all, its probably not a good idea to have.. 'when the user
hits the back button it should...'
-
> From: Gupta, Priyank x57787 [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 31, 2002 5:13 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Reset button does not invoke the FormBean's reset()
>
>
> I need the bean in Session scope , so that
> when
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 5:09 PM
To: Struts Users Mailing List
Subject: RE: Reset button does not invoke the FormBean's reset()
What scope did you define for this formbean?
James Mitchell
Software Engineer\S
gt; Sent: Wednesday, July 31, 2002 4:50 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Reset button does not invoke the FormBean's reset()
>
>
> Yeah I figured that out. But my problem is little tricky.
> I have a set of radio buttons and when I select the
) USX [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 4:39 PM
To: 'Struts Users Mailing List'
Subject: RE: Reset button does not invoke the FormBean's reset()
Hey,
This is a mistake I made at first too. One would assume that a reset button
would call the reset method, but
Hey,
This is a mistake I made at first too. One would assume that a reset button
would call the reset method, but this is not the case. The reset method is
called when an action is forwarding to a JSP with a form/form bean. It's
mainly used to set the boolean properties associated with a checkb
27 matches
Mail list logo