complete jsp file to display query outputs