Now what happens is that when I refresh the page without filling in any details then also the page gets submitted and the errorMsg starts getting displayed. i.e. the form-error-page gets executed and the error message starts getting displayed. Any idea what is going wrong here?
Nothing' wrong here. I believe your validator validates the values present in the form and adds the error messages, hence, you are seeing the error messages.
S.D. MADHAN
Not many get the right opportunity !
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.