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: 314
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
DAO
defined in its class DAO
has aPOJO
defined in its classServlet
communicates with the view (JSP page)
Please give your feedback.
© Programmers or respective owner