Hi All,

I am New to JSP. I want to Know how to use Anchor, Including a file,
Including an img file,Running an Ordinary JavaBean from JSP. Any help is
Highly Appriciated.
Satya

> -----Original Message-----
> From: Craig R. McClanahan [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, January 24, 2000 8:26 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Model 1/Model 2?
>
> "Hines, Bill" wrote:
>
> > I've seen references to "Model 1" and "Model 2" applications. Where are
> > these described so that I can find out what the pros/cons of each are?
> >
>
> The terms were originally used in the JSP 0.92 specification to describe
> two
> overall strategies for architecting a JSP-based application.  Grossly
> simplifying,
> Model 1 is essentially "do the entire application in JSP pages", while
> Model 2 is
> "do business logic in servlets, and use JSP pages for the user interface".
> In
> either scenario, you use beans -- usually stored in the user's session --
> to
> communicate information between pages and servlets.  In Model 1, for
> example, you
> would submit your forms to a JSP page which would have the processing
> logic
> embedded in it, while in Model 2 you would submit forms to a servlet.
>
> There are people who strongly favor one approach over the other (I'm in
> the "Model
> 2" camp because I strongly believe in separating business logic from
> presentation,
> and I think it scales to big applications better :-), and others who don't
> see the
> world quite that black and white.
>
> The current versions of the JSP specification (1.0 and 1.1) describe a few
> more
> variations on overall applicatoin architecture
> (<http://java.sun.com/products/jsp>).  In addition, the Java2 Enterprise
> Edition
> pages (http://java.sun.com/j2ee) have a "best practices" document called
> "Developing Enterprise Applications" that describes application
> architecture in
> detail -- the example application that they discuss is basically "Model 2"
> in
> design, although they still use a JSP page to receive incoming form
> submits.
>
> There are also other JSP tutorials around, that I don't keep current URLs
> for.
>
> Craig McClanahan
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to