I am using an <html:image> tag for login submit action. I'm calling j_security_check servlet to validate user and password. The problem is if I click the image and press "enter" almost at the same time Tomcat throw me a exeception. So, what I want is disable the onclick event is actived.... Or is there any other way to solve this problem ???