If you are getting code instead of JSP Hosting page then you need to install servlets.

To install servlet go to the WebHostManager

>> Account Functions >> Install Servlets. Select domain and install.

After doing this you need to restart tomcat.

Now you will be able to view JSP pages.