Since Java started to move to the Web, servlets have become the foundation of the success for all Web development done in Java. Even with the proliferation of JSPs, they ultimately get compiled into a servlet, giving you an equal, if not slightly less amount of work. So to add dynamic data capability to a Web page, you would have to do a lot of string manipulation to create the desired result. Let’s take a look at a simple servlet, shown in Listing 19.1, that just gives the time and date.
package ibesample; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import java.text.DateFormat; /** * ...