Tip Bank

DevX - Software Development Resource

A Simple Beginner’s Problem from a Swedish Student

Question: Facts: Employee(name,salary,boss,department) Question: Which employees earn more than their boss ? Answer: Please make sure you don’t share the results with your boss! : ) Try the following: use

DevX - Software Development Resource

Delay Script Run in IE5

Question: My project is a based on thin client/server architecture. Internet Explorer 3.02 is the front end using ASP; ActiveX controls and DLLs form the business objects; and Oracle is

DevX - Software Development Resource

Exert Control Over Serialization

Java gives you control over the serialization process through the java.io.Externalizable interface. The java.io.Externalizable interface extends the java.io.Serializable interface by adding two methods: public void writeExternal(ObjectOutput out) public void readExternal(ObjectInput

DevX - Software Development Resource

Limit Your App To One Instance

How can we make sure that only one instance of our Java application is running on a machine? Java does not provide the means of finding out if another instance

DevX - Software Development Resource

Hit Counter Servlet

Sometimes, it is extremely useful to know the number of times a Web page is hit. This is especially so if a web site depends on usage statistics in order

DevX - Software Development Resource

Declaring Global Variables in Java

If you are coming from C or C++ background, you must miss declaring Global variables in Java. You can get the same functionality in Java by declaring a class and

DevX - Software Development Resource

Display Currency Information Correctly

Question: I am writing an online order form in ASP. How can I restrict the value of vartax to a two decimal digit (round up to two decimal points)? Most

DevX - Software Development Resource

Sending Plain Text Via ASP

Question: I wrote simple ASP code that reads a TXT file and sends it to the browser. I change the Response.Header to plain/text. Internet Explorer 4 displays the text file