Chapter 21. JavaScript Basics

JavaScript Basics

The last 20 chapters have demonstrated server-side programming using servlets and JSP pages. In this type of programming, the server takes all the workload. Because a popular web site can attract a large number of hits per hour, scalability is important. Otherwise, your web site can get knocked out several times a week by the sheer number of visitors it receives. You can make your site more scalable a number of different ways, one of which is to reduce your server’s workload by moving some of the processing to the client side—namely, in the web browser.

To understand this point, consider the case in which you have an ...

Get Java for the Web with Servlets, JSP, and EJB: A Developer’s Guide to J2EE Solutions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.