Refactored the action classes, scripts and jsp pages.