corrected the jsp handling