Developer Forums | About Us | Site Map
Search  
HOME > TUTORIALS > DATABASES > MYSQL TUTORIALS > GENERATE DYNAMIC CONTENT WITH TOMCAT AND MYSQL


Sponsors





Useful Lists

Web Host
site hosted by netplex

Online Manuals

Generate dynamic content with Tomcat and MySQL
By Javid Jamae & Kulvir Singh Bhogal - 2004-01-30 Page:  1 2 3 4 5

Conclusion & Resources

We have created an application that demonstrates how Apache Tomcat and MySQL can communicate with one another, and have given you a very useful and reusable tool that handles most of the database work for you. There are several things you could do to expand this application that are outside the scope of this article. As we described above, you could expand the application into a system in which you charge customers for a certain number of clicks or even a certain number of impressions. The CustomerName field in the database could easily be replaced by some other field that would be a primary key in another table containing all of your customer information.

You could expand the DBHandler class to handle database connection pooling. In addition, you could externalize the queries you want to use for your application into a text, properties, or XML file, allowing you to expand or change query definitions without having to write more code.



View Generate dynamic content with Tomcat and MySQL Discussion

Page:  1 2 3 4 5 Next Page: Create your own Java-based rotating banner advertisements

First published by IBM developerWorks


Copyright 2004-2017 GrindingGears.com. All rights reserved.
Article copyright and all rights retained by the author.