W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1999

Dumping HTML files from a servlet

From: Augusto Sellhorn <asellhor@ccd.harris.com>
Date: Wed, 14 Jul 1999 10:54:26 -0400 (EDT)
Message-ID: <378CA4E1.FB46BD1B@ccd.harris.com>
To: www-jigsaw@w3.org

I have a generic page like this

==================================
|      |                         |
|  MS  |        BS               |
|      |                         |
|      |                         |
==================================

Where MS and BS are SSI's refering to
MenuServlet (MS)
BodyServlet (BS)

This allows me to create one index.shtml page that dynamically changes
based on the parameters passed an your session

(ex: index.shtml?page=login for login page , index.shtml?page=main for 
     "main" page, etc)

The BS and MS servlets just dump an HTML file to the servlet's 
response request. Sort of like this.

...
if (page.equals("login"))
{
	dumpFile("/etc/restricted/login.html", res);
}
else
if (page.equals("main")) { ... }

=======================

This works fine.

However, now I want to make login.html more dynamic, and make
a login.shtml page. However, when I'm "dumping" the file, I'm 
bypassing jigsaw right ? 

How can I return a file (which is outside the server root by the way)
and have it be parsed by jigsaw for server side includes. Is this
possible ?
If so, is there a standard way to do this with servlets or a Jigsaw
specific way.

What I'm going to do in the meantime is have a dumpFile() that can
replace
text, YUCK ! It would be much better to filter it through the server's 
engine.

Thanks

Augusto
Received on Wednesday, 14 July 1999 19:52:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT