this would be a great instance to make use of the jQuery library.
Struts2 Jquery
In this there are codes of jquery and you will get to know how to make best use of it. Also provided a video for...