Anthony Mak wrote:
> Dear Sanjay,
>
> If I have Bean handling all the business logic and JSP pages for
> presentation, do I still need to use Servlet? It seems a JSP (presentation)
> + Bean (business logic) combination will suffice at least for small
> application. Can you think of a situation where I might need to use Servlet
> as well?
>
Many application frameworks implement the Model-View-Controller (MVC) paradigm,
which is also popular in GUI application design. In a web app, the most common
division of function looks like this:
* Model = beans
* View = JSP pages
* Controller = servlet
Business logic can be implemented in a variety of ways, but is most often found in
action classes managed by the controller, in JavaBeans, or in EJBs.
For one example of a framework that is organized in this manner, check out the
Struts framework at <http://jakarta.apache.org/struts>.
>
> Anthony Mak
>
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets