Using InternetBeans with Servlets

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.

Listing 19.1. Java Servlet to Present the Current Date and Time Within HTML
 package ibesample; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import java.text.DateFormat; /** * ...

Get Borland® JBuilder™ Developer’s Guide 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.