If you are getting code instead of JSP page then you need to install servlets.
To install servlet go to the WHM >> 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.