I read in SL-314 given by sunmicrosystem book
Disadvantage of Servlet
Servlet often contain both business logic & presentation logic.
Explanation: Mixing presentation & business logic means that whenever a web page changes(Which can be monthly or weakly for many applications) the
servlets must be rewritten, recompiled, & redeployed.
In
JSP also writen same disadvantage.
Disadvantage of JSP
JSP often contain both business logic & presentation logic.
Both Servlet & JSP follows MVC(Model View Controller)
pattern using Model 2 architecture ie servlet act the controller, JSP act as the view &
java technology classes act as the model.
Why these are disadvantages? What is benefit of separating business logic & presentation logic or Model, view & controller.
& in
J2EE platform facilitates an architecture in which the business component are place in separate tier.
my question is in Servlet & JSP why we can not create 3 tier application like J2EE architecture example, Internet client using web browser sends Http Request to web server. In web server, there is web container contains controller. there is another server that is EJB server which contain model. & database is separate. ie i think this is 3tier application.
If using EJB we get security then why people use sevlet & JSP?
Thanks in advance & sorry for asking question wrong way of English.