> You might think about batching the html generation of 'mostly' static
> pages. I'm sure apache will do a better job a caching/cleanup...
I'm not entirely sure what you are getting at, but there is a problem with
using pure HTML pages mixed with JSP pages. This has to do with "session
propagation" using the request.encodeUrl() method. When you link to a page
for someone who doesn't have cookies, the session id is passed along as a
parameter in the URL. If you jump to a pure HTML page, that will get lost
when they click on any links in that pure HTML page.
Also, if you have just one tiny bid of JSP syntax, the whole HTML file needs
to become a JSP. The URL rewriting scheme for non-cookie people is a rather
nasty hack -- for one thing, it requires so much extra code in the JSP files
to remember to encode things. I just wish there were a compliant way to
test whether cookies are enabled and tell people that the site won't work
well if they don't support them. Heck, some browsers now have
"session-only" cookies that generally are good enough for JSP systems in
that the cookie is used for maintaining the session context during a visit,
but the cookie will disappear when the browser is closed. This should help
from a "worry" factor that cookies are being used for nefarious reasons,
though I think cookies are much less of a problem that the popular press
makes them out to be. One problem, I guess, is that many older systems
don't support cookies at all, such as certain web crawlers and the like.
I've seen a lot of problems with webcrawlers getting error pages and such
because of that fact and because they don't go through a web site the way a
human would (i.e. they read a page, gather all the links, then iterate
through each link, whereas a human tends to pick a link and then follow that
further, or back up).
David
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html