This is not how you do this.
You need to learn whole new area of development.
Please search on google about how to develop web application in JAVA
You can take a quick look at
JSP Tutorial[
^]
But if you want to create a static page using your some java application or function; then you probably need to create your own rule about, how you are going to transfer a xls file to an html or jsp file