Ulf Dittmer wrote:Ask yourself this: Under which circumstances would the try/catch block ever be executed?
There should be no code before the opening of the try block. I removed all the form validations code and if else parts and it worked!! But the case is, that code is a must! I must check whether those given fields are empty or not before submitting the form. Actually this code is a part of my
java project in my degree. I really appreciate your help. please help me. That form validation is a MUST!