added jsp logic and index.jsp