bind servlet with jsp & fix some errors