This is what I've been hearing all along
Use jsp to display information, use servlet to handle post and response and JavaBeans to process business logics
So if my web application requires the use of database, where should I put my code to query the database
I've seen samples of code and all codes to connect and query the database are put in the serlvet doPost or doGet methods
It seems a bit messy to me, but what's the best design approach to do this?
And is there a sample?
Thanks