1. You need to purchase the Tomcat addon so that tomcat will be enabled.
2. You will have to use the software you developed it in to deploy it as a .war application. (basically a compressed .jsp app).
Once you do these, you can simply go to the domain, click tomcat, select the .war file and upload. Then just turn it on.