StrutsUser wrote:
Hi,
I am having a situation where the <s:reset> tag does not work. I am doing
some client side validation using javascript and server side valdiations in
the 'validate()' method of my action class.
When client side validation fails and I click the reset button, the data
gets cleared.
But when the validation fails in the 'validate()' method and I click the
reset button the data is not getting cleared. I don't know if this is a
known issue.
Could anyone please help me out.
That's expected behaviour; it's what the HTML 'reset' input type does.
Reset will reset the form inputs to the values they had when the page
was loaded. If you want a different behaviour, you will need to
implement it yourself (either client-side with JavaScript, server-side
(using a submit button instead of a reset), or some combination of both.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]