a scripting solution is preferred over servlets and
a scripting solution is preferred over servlets and CGI programs. . PHP provides APIs for accessing a large set of databases, and supports features like persistent database connections, and sessions. These features will be heavily used in the middle tier. Page 546
Note: If you are looking for cheap and inexpensive provider to host and run your tomcat application check professional tomcat hosting services