O'Reilly logo

Borland® JBuilder™ Developer’s Guide by Jeff Swisher, Saleem Siddiqui, Michael Landy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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; /** * ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required