Dear Phil,

----- Original Message -----
From: "Phil Hedley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 16, 2000 6:27 PM
Subject: Re: Difference between Servlet and Bean?


> From:  Phil Hedley@MITEL on 11/16/2000 09:27 AM GMT
>
> Checkout thisdocument  as an idea of how to approach the problem
> http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html
>
> The example is not perfect, but the model states that the recommended
approach
> is to have a single servlet to handle all requests. The requests are
passed on
> to the the appropriate classes(or beans) to perform the business logic.

Do you mean a model like this:

    Servlet -> Bean
                -> Bean
                ...

Question : After the Beans processed the business logic, do they return the
data to the same Servlet for rendering the presentation? Or each of the Bean
return to a different JSP page for rendering the presentation? I am not
quite sure how is the presentation handled in this framework.

Question : What do you think are the pros and cons of using JSP pages for
rendering the presentations and use a single Bean to handle the business
logic, instead of model above?

    JSP page->
    JSP page ->       Bean
    JSP page ->

Anthony

> I found the term 'beans' rather confusing in that the classes that handle
the
> business logic do not have to be Java beans, they can be just ordinary
Java
> classes with no special structure. The bean structure is only required for
> introspection  if you use for example the set/get property directives in
the jsp
> page.
>
> cheers,
> Phil Hedley
>
>
>
>
>
> Anthony Mak <[EMAIL PROTECTED]> on 16/11/2000 01:41:09
>
> Please respond to A mailing list about Java Server Pages specification and
>       reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:    (bcc: Phil Hedley/Cal/Mitel)
>
> Subject:  Difference between Servlet and Bean?
>
>
>
> Dear all,
>
> I heard it is good idea to seperate business logic out of JSP by using
> Servlet or Bean.
>
> The logical question I have now in mind is what is the difference between
> Servlet and Bean? Should I implement my business logic in Bean or Servlet?
>
> Anthony Mak
>
>
===========================================================================
> 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
>
>
===========================================================================
> 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
>

===========================================================================
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

Reply via email to