How to disable an action link after one click
===

I have an jsp page. There is an action link. I want when the user click on the action link some action is performed with the action related class AND also simultaneously the link should get disabled for any other 2nd click. and the user should remain on the same page. Also a message should be displayed 'the link is disabled' on the same page Can someone give some code  or any means how to do it.? thanks..