The following is an example for HTMLHyperlink:
// Create an HTML hyperlink to the AS/400 Toolbox for Java home page. HTMLHyperlink toolbox = new HTMLHyperlink("http://www.ibm.com/as400/toolbox", "AS/400 Toolbox for Java home page"); // Display the toolbox link tag. System.out.println(toolbox.toString());
The code above produces the following tag:
<a hef="http://www.ibm.com/as400/toolbox">AS/400 Toolbox for
Java home page</a>
When you use this tag in an HTML page, it looks like this:
AS/400 Toolbox for
Java home page
[ Information Center Home Page | Feedback ] | [ Legal | AS/400 Glossary ] |