Servlets and JSP: An Overview Page 4

By ServerWatch Staff (Send Email)
Posted Dec 7, 1999

What Are the Advantages of JSP?

  • JSP vs. Server-Side Includes (SSI). SSI is a widely-supported technology for including externally-defined pieces into a static Web page. JSP is better because it lets you use servlets instead of a separate program to generate that dynamic part. Besides, SSI is really only intended for simple inclusions, not for "real" programs that use form data, make database connections, and the like.

  • JSP vs. JavaScript. JavaScript can generate HTML dynamically on the client. This is a useful capability, but only handles situations where the dynamic information is based on the client's environment. With the exception of cookies, HTTP and form submission data is not available to JavaScript. And, since it runs on the client, JavaScript cannot access server-side resources like databases, catalogs, pricing information, and the like.

  • JSP vs. Static HTML. Regular HTML, of course, cannot contain dynamic information. JSP is so easy and convenient that it is quite feasible to augment HTML pages that only benefit marginally by the insertion of small amounts of dynamic data. Previously, the cost of using dynamic data would preclude its use in all but the most valuable instances.

  • Page 4 of 4

    Comment and Contribute

    Your name/nickname

    Your email

    (Maximum characters: 1200). You have characters left.



    Thanks for your registration, follow us on our social networks to keep up-to-date