Today, I found following blog article. 
It's a teaching artical about How to set Tomcat+Java and connect with
mySql.

demo.jsp is from the page.
====================================
http://olife.iteye.com/blog/591479
my ned's blog.