JNIOR Custom Web Pages

Overview

The JNIOR has a web server built-in.  This web server is like many other web servers out there.  It serves files from the file system that the browsers render as web pages.  The very basic web page is called a static web page.  JANOS also has the ability to render a web page before serving it using a scripting engine.  JANOS has a PHP-like scripting engine that can render content before serving it.

Static Pages

A great example of a static page is the index.html page.  Here is a very simple example of an index.html file:

<html>
  <body>
Hello JANOS
  </body>
</html>

This file can live in the filesystem in one of two different places.  There is a public and private section of the file system for web files.  The public section is stored in flash/public and the private section is flash/www.

Server Side Scripting

JANOS’s PHP like scripting engine allows for web content to be rendered before being served.

Compressed Web Archive File

Most web applications do not consist of a single file.  They very likely consist of a collection of files.  HTML, JavaScript, and images will make up web applications.  A very powerful feature of JANOS is the ability to ZIP your web files into a single archive file.  This makes publishing your web applications your easier.

JANOS knows to treat the .zip files as directories and look inside them for web content.  A .zip file by the same name as a directory will be examined before the directory.  For example, if you load up the JNIOR Web UI by going to http://JNIOR_IP_ADDRESS then the /flash/www/index.html file will be returned.  But, if a /flash/www.zip file exists then an index.html file within that .zip file will be returned instead.

On this page