There is a servlet ShowDocumentFile.java in
/home/webflow/Jigsaw/Jigsaw/WWW/servlet
which should allow
showing HTML pages based on templates. The templates can be just final
HTML pages, or they can have a number of tags which can be substituted
with actual values at runtime. For example, the page:
<HTML>
<BODY>
Hello @@**UserID**@@ (@@**firstName**@@ @@**lastName**@@)
</BODY>
</HTML>
Will be rendered as
<HTML>
<BODY>
Hello jkl (Jan Labanowski)
</BODY>
</HTML>
When user usr jkl called it (i.e., when the parameter UserContext=jkl was
given in the URL which called the servlet). The servlet needs to know
the full path to the template file. It is given on command as FILE parameter.
For example click on the link:
The jklTemplate.html is:
<HTML>
<BODY>
Hello @@**UserID**@@ (@@**firstName**@@ @@**lastName**@@).
Your phone number is @@**officePhone**@@ and your email address is:
@@**email**@@.
</BODY>
</HTML>
The configuration file (/home/webflow/PSE/allowedPaths) file which restricts
which files can be shown, is:
/home/webflow/Data/@@**userID**@@/ # user files under user Data area
/home/webflow/Jigsaw/Jigsaw/WWW/ # whole directory tree under Web
# server root.
The older one (ShowDocumentFile.java)
http://heechee.osc.edu:8002/servlet/ShowDocumentFile?UserContext=jkl&FILE=/home/webflow/Data/jkl/jklTemplate.html&CONTENT-TYPE=text/html
The new one (ShowDocumentFile1.java)
http://heechee.osc.edu:8002/servlet/ShowDocumentFile1?UserContext=jkl&FILE=/home/webflow/Data/jkl/jklTemplate.html&CONTENT-TYPE=text/html
The other example of one (ShowDocumentFile1.java)
http://heechee.osc.edu:8002/servlet/ShowDocumentFile1?UserContext=jkl&FILE=/home/webflow/PageTemplates/submitGaussian.html&CONTENT-TYPE=text/html