jsp sample code, mysql, first website
Posted on 2003-03-25
i need to create a website for a non-profit org and have a full db schema planned etc. but i have seen many snippets of code all over the web, some that make DB calls within the jsp pages, other that use the mvc design paradigm and use struts, etc. is there a place that i can get a starter code package that i can modify for my non-profit?
i just need to retrieve content from the DB and display it on the web using
Tomcat4.1, MySQL, and JDK1.4.
I have learned that the best way to code is probably with a special Bean that is responsible for talking to the DB (Model) but I have failed to find ample sample code on the web of how to create a bean and call it from the JSP.
Any help would be appreciated.