tomcat q&&a

A: connection pool. Tomcat has built-in support (DBCP)
A: dao, straight jdbc and tags
Q: how to improve db access performance with jsp?
A: connection pool, jndirealm. tomcat jndi? yes
Q: 3 ways to access db from jsp
Q: how is jndi used in tomcat?



velocity is mostly used as the V of the MVC.

An interesting prj: velocity email-template

– No JSP
– the template contains place holders for names, titles etc

Q: how was the “subsititution” triggered?
A: perhaps the mailer program loads the velocity classes which reads the config and the template