devxlogo

Tip Bank

Building Absolute/Relative URIs

This tip show you how to build absolute/relative URIs by using the java.net.URI methods. Building an absolute URI: try{ URI uri_absolute=new URI(“http://www.java.sun.com/”); URI uri_relative=new URI(“index.html”); URI uri_absolute_result=uri_absolute.resolve(uri_relative); System.out.println(uri_absolute_result); }catch(URISyntaxException e)

Process an XSL-FO Document

Sometimes you need to process an XSL-FO document that is the result of an XSLT transformation. Actually, the XSL-FO document doesn’t exist, it is just a stream of SAX events.

Malfunctioning CacheDuration Attribute

The CacheDuration attribute of a WebMethod does not work as intended in the .NET Framework 1.1. Methods that use HTTP GET fail if the .NET Framework is v1.1. That’s because,

A Faster Way to Search Through a DataTable

DataTable supports the Find() and Select() methods for quick searching. But a faster way is to use a DataView with a sort column. DataView generates an index for a sorted