aspose file tools*
The moose likes Servlets and the fly likes DAO Pattern & Head First Series Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "DAO Pattern & Head First Series" Watch "DAO Pattern & Head First Series" New topic
Author

DAO Pattern & Head First Series

Mark Henryson
Ranch Hand

Joined: Jul 11, 2005
Posts: 200
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.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Originally posted by Mark Henryson:
Another question, whether Head First series Design Pattern is good for the beginners. I know JSP, Servlets only.


Very much aimed at beginners, and a wonderful start for those people. It also gives a good basis for solid OO foundations too. I reviewed it for the Ranch and gave it 10/10, a fine reading experience
Mark Henryson
Ranch Hand

Joined: Jul 11, 2005
Posts: 200
Thanks for your reply.

Whether I can start learning Design Pattern, without knowing EJB.

Please also answer my others doubts regd DAO that I had posted.

Thanks & Regards,
Mark.
[ October 30, 2005: Message edited by: Mark Henryson ]
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Mark Henryson:

Please advise me in this regards.

Shortly:
1. Simple Example Coding for DAO Pattern
2. Head First Design Pattern is good for beginners.


2. Head First Design Pattern is good for beginners.
- Ofcourse, best book about design patterns.

1. Simple Example Coding for DAO Pattern
- I would recommend starting with HF Servlet & JSP. You would find some of the popular and useful design patterns for the web-tier in that book. After digesting all that you would know that design patterns doesn't need a 0 knowledge of EJBs. Although, some of the persistance-tier pattern used to talk about EJBs. You can go for that after getting all the prerequisites.

Hope you would get me now.

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DAO Pattern & Head First Series