I have a web based ERP package to be developed
using the J2EE.So I decided to go for MVC archetecture:
where all the requests from the client will first go to the Controller
Servlet whose purpose is to just redirect or forward it to the appropiate Business Servlet.Business servlet will connect to database and populate the data in the
Java Bean.Then the process from business servlet is redirected to
JSP (which acts as the View) which will make use of the Java Bean data which is being populated by the Business servlet.
Now following are my doubts:
1. So here the Controller is Controller Servlet
and the View is JSP page then what is the
Model.
2. If I want to use
EJB where shall I make use
of it.Can I use the EJB as an interface
between servlet and the database(i.e. for
connecting database from the servlet
through EJB and populating the bean).
3. Can I make use of the structs framework?What
is the benefit I get using it.
Appreciate you view on the above issues