Re: Crypto example miss-typeo

Marianne Mueller (Marianne.Mueller@Eng)
Tue, 30 Jun 1998 11:36:21 -0700 (PDT)

Date: Tue, 30 Jun 1998 11:36:21 -0700 (PDT)
From: Marianne Mueller <Marianne.Mueller@Eng>
Subject: Re: Crypto example miss-typeo
To: java-security@java0.javasoft.com, hmettawa@mail.cybg.com

Like Jan said, your copy is fine. You might be able to view it
in the browser if you use file:/ or file:///, but that doesn't always
work. You might want to copy the source code example to another file,
using an editor.

The trouble is that HTML parsers can't deal with "<" or ">", even inside
<pre></pre> or <code></code>. The browser wants to interpret the "<"
symbol as part of an HTML command, so it swallows, or doesn't display,
the code that follows "<" until it sees a ">".

You can force "<" to be printed in HTML by using &lt; of course, but
then that code *really* won't compile.

Marianne