TreeviewServlet
Requests to the Treeview Servlet
Initialization
Flow of a first time request to the Treeview Servlet:
- A client accesses the servlet using the webbrowser
- The server software (JRun for example) looks for the servlet
and loads the class files.
- 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).
- 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.
- 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
|