How to Prevent multiple submits in Java

How to Prevent multiple submits in Java