Validation with pure Java

Build a solid foundation for the data-validation framework with the core Java API The idea of constrained properties in Java is not new. Since JDK 1.1, a legion of JavaBeans developers has used a powerful framework found in the java.beans…

Java Product News (December 29, 2000)

INDEXHEAD: Tidestone Technologies updates Formula One for Java 8.0.1 Tidestone Technologies has unveiled a maintenance release of its Formula One for Java 8.0.1 application. The reporting application now: Exports XML from the application’s spreadsheet-based report templates Assigns clickable sections (or…

Calculating Java dates

Take the time to learn how to create and use dates To keep track of time, Java counts the number of milliseconds from the start of January 1, 1970. This means, for example, that January 2, 1970, began 86,400,000 milliseconds…

Build your own languages with JavaCC

Build your own languages with JavaCC

JavaCC makes it a snap to write your own compiler or interpreter for languages of your own design in Java Do you ever wonder how the Java compiler works? Do you need to write parsers for markup documents that do…

When Runtime.exec() won’t

Navigate yourself around pitfalls related to the Runtime.exec() method As part of the Java language, the java.lang package is implicitly imported into every Java program. This package’s pitfalls surface often, affecting most programmers. This month, I’ll discuss the traps lurking…

E-business choice: Java or Windows?

Two InfoWorld Test Center veterans debate the pros and cons for e-business of J2EE vs. Microsoft 2000 With the recent rise in acceptance and deployment of Internet applications, corporations have quickly come to realize that the applications they build must…

Take control of the servlet environment, Part 2

Take control of the servlet environment, Part 2

Alternatives to servlet session management In Part 1 of this series, we introduced the Rudimental Servlet Extension Framework (RSEF) and delved into its bowels, exposing the potential power of intercepting communications between your servlets and the servlet engine. In Part…

Untangle your servlet code with reflection

Simplify servlet structure by breaking down functionality into separate methods Despite the elegance of the Servlet API, real-world servlet classes tend to have pages of code in their doGet() and doPost() methods, often with complex conditional logic. Over time, more…

Java Product News (December 21, 2000)

INDEXHEAD: Sun unveils Forte for Java, release 2.0 Sun Microsystems’s updated Forte for Java, its cross-platform development environment, relies on an open source framework that allows developers to create applications using a modular design. Release 2.0 also lets developers add…

JUnit best practices

Techniques for building resilient, relocatable, multithreaded JUnit tests JUnit is a typical toolkit: if used with care and with recognition of its idiosyncrasies, JUnit will help to develop good, robust tests. Used blindly, it may produce a pile of spaghetti…