Hi,
I have learned/learning
JSP and
Servlets in Head First JSP and Servlets. As a next step, I want to learn thr Design
Pattern. So far I have learnt in Servlets and JSP, I done a small project for adding the employee details in the database by different pattern such as MVC pattern (Model -
Java Bean, Controller - Servlet (having database connecion in it), View - JSP.
However, Someome adviced me not to use the database connection either in JSP or Servlet and Use DAO pattern for it.
I don't know how to code/basic of DAO Pattern. I am not very much familiar with design pattern especially with DAO. I don't know
EJB. At this stage, it is good to buy some books on Design pattern. or Ater learning EJB only, we have to go to Design Pattern.
I have referred the DAO pattern in the google search, but it is very complicated one. Is there any example coding for DAO pattern(not a complicated one)for just adding/editing the records in the database.
Another question, whether Head First series Design Pattern is good for the beginners. I know JSP, Servlets only.
Please advise me in this regards.
Shortly:
1. Simple Example Coding for DAO Pattern
2. Head First Design Pattern is good for beginners.
Thanks & Regards,
Mark.