use javascript to get the job done on the client side along with jsp......

:)

ashishkumar haldar.