What is Page Compilation?
Page Compilation allows you to generate HTML pages from HTML/Java pages.
Jigsaw has a special frame (
PageCompileFrame)
that translate the HTML/Java file in a
Jigsaw frame source file,
compile it and runs the new compiled frame. The PageCompileFrame can be
used like any other frame. Read the
Resource
Configuration page for more details on
Jigsaw frames and resources.
Example:
The following HTML/Java page
<html>
<head>
<title>Page Compilation Test</title>
</head>
<body>
<h1>Page Compilation Test</h1>
<java>
out.println ("<p>Page Compilation test");
</java>
<h1>Display a list</h1>
<ul>
<java>
for (int i = 1; i < 10; i++) {
out.println ("<li> item " + i);
}
</java>
</ul>
</body>
</html>
will be translated in this HTML page:
Page Compilation Test
Page Compilation test
Display a list
-
item 1
-
item 2
-
item 3
-
item 4
-
item 5
-
item 6
-
item 7
-
item 8
-
item 9
Tutorials