internet.com logo The Java Boutique

TreeviewServlet




Requests to the Treeview Servlet

Initialization
Flow of a first time request to the Treeview Servlet:

 

structure.GIF (10365 bytes)

  1. A client accesses the servlet using the webbrowser
  2. The server software (JRun for example) looks for the servlet and loads the class files.
  3. The TreeView servlet then reads its properties from the treeview.properties file which
    is located in the same directory as the servlet (or in the same classpath enviroment).
  4. Then the servlet opens the nodes.txt file via http for reading the tree information.
    The nodes.txt file can be stored wherever you want, it just has to be accessible
    over http. (http://www.swissource.ch/nodes.txt for example)

    The servlet then caches the tree information.
  5. The servlet generates the HTML response code for the clients browser. The image
    source definition of the icons is also generated by the servlet.

Standard request
After initalization the properties and the tree definitions are cached by the servlet so the servlet
won't read these two files for a standard request.

 

 


Back to the TreeviewServlet page