Relationship DAO, Servlet, JSP and POJO
Posted
by
John Hendrik
on Programmers
See other posts from Programmers
or by John Hendrik
Published on 2012-10-31T15:08:40Z
Indexed on
2012/10/31
17:12 UTC
Read the original article
Hit count: 374
I want to implement a JSP, POJO, DAO and Servlet in my J2EE program. However, I don't fully understand how the relationship between these elements should be. Is the following (MVC) setup the right way to do it?
- Main class creates servlet(controller)
- Servlet has a
DAOdefined in its class DAOhas aPOJOdefined in its classServletcommunicates with the view (JSP page)
Please give your feedback.
© Programmers or respective owner