This is why a Good Architect is worth his weight in Gold

Model View Controller states

View - JSP (user interface)

Controller - Servlets (handles incoming reqests and
outgoing responses)

Model - JavaBeans and/or EJB (contain your business logic like connecting to
a DB etc)

Anyone else???
-Martin

----- Original Message -----
From: "Brian P Bohnet" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 8:41 AM
Subject: Re: Why use servlets?


> I had the privilege of inheriting a medium sized jsp-servlet-ejb
> application recently and I have found myself wondering the same thing. I
> have been increasingly rewriting most of the code out of the servlets
> and into javabeans which has improved memory management, (since the
> servlet code used session too much) and maintenance is much easier since
> each javabean has its own "controller" aspects similar to what the
> servlet's were originally designed to be, but in my case too few
> servlets caused the code to be a mess.
>
> I believe if you are happy with the app and the maintenance of it with
> your design then, why have the servlet, right? If you handle the all the
> aspects of the application including the 'view' and do not have to rely
> on web designers understanding your programming then you should continue
> to develop the way you are. Just a warning, I believe plenty of folks
> must deal with non-programmers creating the display jsp's so they will
> tell you horror stories about this approach! Since you and I handle
> every aspect of the application then it makes more since to design this
> way. Good Luck!
>
> Brian
>
> Campano, Troy wrote:
>
> >I'm curious as to what the reason is to use Servlets.
> >I write straight java class/methods and call them from my JSP.
> >My business logic goes into these classes.
> >
> >JSP handles the interface and handles request/response.
> >Usually I guess it's a Servlet that handles the request/response but it
> >seemed to me like an added extra step.
> >I didn't really see what I was gaining by using a Servlet.
> >
> >So I'm curious of what the point of Servlets are....is there something
> >they give you that JSP doesn't?
> >So I know I'm missing something....why use Servlets?
> >
> >Thank you for your responses!
> >
> >~ t r o y ~
> >
> >Troy Campano
> >IAS Database Management
> >Liberty Mutual
> >(603) 245 4092
> >[EMAIL PROTECTED]
> >
> >
> >
>
>===========================================================================
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> >
> >Some relevant archives, FAQs and Forums on JSPs can be found at:
> >
> > http://java.sun.com/products/jsp
> > http://archives.java.sun.com/jsp-interest.html
> > http://forums.java.sun.com
> > http://www.jspinsider.com
> >
> >
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>  http://java.sun.com/products/jsp
>  http://archives.java.sun.com/jsp-interest.html
>  http://forums.java.sun.com
>  http://www.jspinsider.com
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to