The question was:
> I have a JServ servlet that is processing some form data, then needs to
> return a static HTML file as a response. Is there any way to let Apache
> take care of making the http response? I would like to take advantage of >
Apache features, e.g. aliasing, caching, http headers
> (304 not-modified, ...).
Thanks for the replies - HTTP redirect is a good solution, I forgot to
mention that I'd rather avoid an additional round-trip between the browser
and the server.
Someone mentioned server-side includes, but my guess is that mod_ssi has
the same problem as jserv and will never return a 304 Not-Modified if
there's any dynamic code in the document.
Processing the If-Modified request header and returning a 304 - Not-Changed
status if appropriate is the way I had to go, but I don't like it, it
amounts to reimplementing Web server functionality in the servlet.
Besides, mod_jserv reports an error (cannot scan request headers) when I
try to add the Last-Modified date header to the initial response; I didn't
investigate it yet, I'll file a bug report if I figure it out.
Franck Mangin
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://www.working-dogs.com/>
Problems?: [EMAIL PROTECTED]