Adding error support to servlet