• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

DAO Pattern & Head First Series

 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 200
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic