Added locale script to common template. Also added a new catch exception
to web.xml