Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com

You can import Java classes/packages like this.

You use a page directive,

that can be repeated.

================================

JSP is CaSe-SeNsItIvE, too !

================================

We could have done without these imports, because the java.lang.* import is default, as are those for :
  javax.servlet
  javax.servlet.jsp
  javax.servlet.http

=============

We make a hexadecimal String, like ad008a, cdab12 or what have you, in a Java scriptlet.


  <%  .......    %>
Scriptlets will always end up as source code in the generated servlet's service method, so any variables that you use will be local to this method, thus temporary.

Java expressions ( <%= ... > ) end up as String output in the service method.

==========

NOTES

==========

An int is always 4 bytes, but we want three bytes only, so we set the leftmost to zero.

Hex constants start with 0x .

& is the AND bit operator.
  0  &  0  ---->    0
1  &  0  ---->    0
0  &  1  ---->    0
1  &  1  ---->    1