Struts 1.x Client side validation with java script.