devxlogo

Tip Bank

Understanding the Listener Pattern

The Listener pattern is commonly used in the AWT since JDK 1.1. In fact, the Listener has been the base for the event handling mechanism for UI events in Java.

Servlets are a Viable Alternative to CGI

Servlets provide a more effective mechanism of achieving the functionality offered by CGI (Common Gateway Interface) scripts. CGI was one of the first techniques for creating dynamic Web pages by

Index Server Directory Scanning

If you are utilizing Internet Information Server (IIS) 4 and Microsoft Index Server, be careful which directories you set up to be traversed by Index Server. You likely do not

What are Servlets?

All Java programmers probably know what Java applets are and how they differ from Java applications. After all applets were Java’s gateway into the Internet. Servlets are Java’s entry into

Calling JavaScript in an Anchor Tag

There are many ways to call a JavaScript function in an HTML document. One way is inside an anchor tag. Any function that is listed in the portion of the

Customize the Index Server Results Page

Don’t like that plain search results page that comes up when using index server, when the rest of your site looks so nice? The results page is a file with

Performance of typeid vs. dynamic_cast<>

As far as design is concerned, dynamic_cast should be preferred to typeid because the former enables more flexibility and extensibility. Notwithstanding that, the runtime overhead of typeid can be less