
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

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

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

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

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

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

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

You can start a thread in Java by either implementing the java.lang.Runnable interface or by extending the java.lang.Thread class (see Tip “Weaving Threads”). How do you decide which mechanism to

Question: Imagine an MDI application where the MDIFrame has many MDIChild forms?each one derived from TBlueForm class. The TBlueForm class has a public method named ChangeColor which only makes the

Question: What is the best way to do a database report?in other words print a database? I have been having serious trouble with QuickRep. I specify the dataset but still

Question: How do I save my new database at run time to a new file? I’m using a paradox database?DBGrid, and a table and data source control. Answer: Use TTable’s

Question: I have set up a paradox table for multiple user access using the Netdir method, but when I post a record other users cannot see the changes until the

Question: Can you recommend resources to learn how to tackle 16-bit and 32-bit programming in Delphi? Answer: A number of good books that I’ve read include: All of Charlie Calvert’s

When you type inside the element in Netscape Navigator 4.5, the text scrolls horizontally. You need to press Enter to create a new line. Internet Explorer 4 doesn’t require a

Active Server Pages that utilize databases like SQL Server are no different than conventional programs in that they will experience a performance boost when you use stored procedures instead of

C++ statements can be broken into more than a single line. However, you cannot break literal strings such as printf() format string, macros, or literals. When you need a long

Java’s Socket class gives you control over how a socket handles queued data when it closes. This linger-on-close option allows you to dictate whether you want the socket to send

If you use the intrinsic VB Dir$ function to check for the existence of a certain file, then subsequently try to remove the directory where the file is found using

How many times have you had to control the same processes with both command buttons and corresponding menus? I expect you’d say “many,” which means you’ve had to set the

Sometimes, it’s useful to know whether a control is displaying vertical scrollbars, horizontal scrollbars, both horizontal and vertical, or no scrollbars at all. For instance, when determining the amount of

Most professional and commercial applications exhibit a specific behavior when using dialog boxes with text fields: When you tab to an input field, or hot-key (using some ALT-key combination), you

To keep a list of available error codes in your components, declare a private enumeration: Private Enum Errors InvalidUserID = vbObjectError + 513 InvalidPassword SearchNotFoundEnd Enum Setting the first value

The Winsock control allows you to make only one connection between two computers. However, you can create multiple connections (many computers to one) by creating multiple instances of the Winsock

Question: I am creating an Active Server Pages (ASP) application using Visual InterDev and I need to display data in a non-bound data grid. I have read that it is

Timer controls can be practical when you need to add a small delay in program execution. However, if you need the delay in a class module (instead of on a

When you use Index Server and Internet Information Server (IIS), you get a moderately useful search process built into your Web application. However, it isn’t readily apparent where that data

A vector stores its elements contiguously in memory (although this is not a requirement in the Standard, in practice, all implementations use contiguous storage). Consequently, each element in a vector

When outputting HTML, it’s often handy to be able to turn any URL, such as http://www.whatever.com, into a hyperlink, such as http://www.whatever.com. You can do this with a regular expression

The prominent mechanism used to debug a Java application is to write string messages to System.out. However, this method clutters up the output of the program. In order to turn

Any object that defines the copy constructor, default constructor, assignment operator and destructor as public members (either explicitly or implicitly) can be stored in STL containers. If you do not

By default, instances of Window subclasses such as Frame and Dialog appear at the upper-left corner of the screen when made visible. For a more user-friendly interface, you can center