How to Prevent Multiple submits in Java

How to Prevent Multiple submits in Java