I you have to downgrade your code to be compatible with Tomcat 5 and JDK 1.5, then you can't just downgrade your code to JDK 1.5. You also need to downgrade to Tomcat 5.
I would advice you to look for another hoster though. JDK 1.6 ((Java SE 6) has already been end-of-lived. 1.5 is by all accounts ancient. Never trust a hoster that forces ancient tech upon you!