Servlet is controller and JSP handles presentation, if we refer to MVC.
It depends on what "components" the system used. If there are no EJBs, usually, Servlet itself will process the business logic, like perform transfer operations and then interact with the database, etc.
But if you make use of EJBs, most likely Servlet will be purely used for "Controller" purpose only, i.e. to look up the corresponding business component and then forward the request to there for further process, or received the result from business componets and look up which view to be used for display. And EJBs will be responsible for performing business operations.
That's why you can see the "definition" from SUN, Serlvets and JSPs are regarded as Web components (SCWCD) while EJBs are regarded as Business components (SCBCD).
Nick
[ July 26, 2005: Message edited by: Nicholas Cheung ]
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)