struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nuwan chandrasoma" <>
Subject Re: reset() method
Date Fri, 01 Sep 2006 18:25:06 GMT

what is the scope the form is in? i think it must be session. what you can
do is with out adding a reset button, add a normal button and call a
javascript with would reset the values in the from elements explicitly. i
had the same problem. this what i did.



On 9/1/06, Sonu S <> wrote:
> Hi,
> I am using struts in my application. i am using reset and validation. i am
> not writing any validation method. i am using struts' validation
> framework.
> validation is working. reset also works fine in application if i enter
> some
> values in form  (text box) and press reset, it clears form values.
> but if i follow these steps, reset does not work
> 1) enter some values in form
> 2) click submit button
> 3) validation fails
> 4)  return to form
> 5) values are still in text box
> 6) here if i press reset button it does not reset the form values.  it
> calls
> reset method ( i have checked reset method is being called) but it does
> not
> reset the text box,
> i want to reset the form every time reset button is clicked.
> thank u

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message