Hi ,
You have a very good overview of the JSP Architecture in Chapter 12,
Professional JSP. It covers different arcitecture using JSP, Servlets and
JavaBeans.
Just I wouldn't agree with one of the previous messages that business logic
part or the functionality part of web page should be in Servlets. The best
use of the servlet is as the controller, since it handles http requests and
respondes, accesses sessions etc. You can forward or redirect easily from
servlets.
Business logic should be handled within business objects and between
servlets and business objects it's nice to have some sort of workers or
handlers.
At list I found this kind of architecture the best suited for any complex
application.
Also if you have to access very often data base from the same page, on the
same way, you can avoid controller component and use worker bean directly.
good luck
lubisak
----- Original Message -----
From: Muhammad Affan Qureshi <muqureshi@s...>
To: Java Server <pro_java_server@p...>
Sent: Tuesday, October 10, 2000 3:59 AM
Subject: Dividing Task b/w JSPs and Servlets
>
> Hi all
>
> Can anyone explain to me how are we supposed to determine which work
> should be handled by the Servlets and which by the JSPs in an application
> where ou are supposed to use the both of them?
>
> Does any one of them has any advantages over the other?
>
> Thanks in advance.
>
> Affan
>
>
>
>
>
>
> ---
> To place your message here, or to sponsor this list, please e-mail
mailto:p2pinfo@w...?subject=MediaPack, remembering to provide contact
details for yourself. We will e-mail you a Media Pack within 24 hours.
$subst('Email.Unsub')
>