----------------------------- Please read the FAQ! <http://java.apache.org/faq/> ----------------------------- I'm working on converting pieces of a web applet that were running on Cold Fusion to java servlets. For the most part I 'm seeing a speed increase (that is why I'm doing it). but here is one thing I'm not sure how to do easily. Result caching. In CF I can cache pages with common URL parameters. This would be like the first time I go to /servlets/servletA?A=1&B=2 it would run the servlet and return the results but the second time and all other times I go to /servlets/servletA?A=1&B=2 I would get an HTML page returned from a cache file. In some cases where the page has huge queries this is a major speed enhancement obviously. I would then be able to flush the cache on demand or timeout cached results when they are generated. In CF I can also cache query results, I know this isn't really a jserv issue but I'm not sure where this would reside in java since I don't see anyting like this in the JDBC driver specs in CF result caches rely on the SQL being the same as well as the the "name" of the query if they are and some timeout has not occured results are pulled from memory instead of a db connection. I just wondered if anybody has put any thought/development into this (I didn't se anything in the fac under "cache" or caching). I suppose results cache could be as simple as: write the full URL to a file with a key to a file containing the result. search the file of full URL's for a match on theURL that the servlet was called with, if there is a hit then return the content of the file indicated by the key next to the matching URL if not do whatever the servlet normally does, index the URL and save the results to a cache page. I am obiously trying to avoid the extra work:) just seeing if somebody has created some sort of "cache wrapper" servlet that would decide if a page is cached if not call the servlet and cache the result. so you might call the cache wrapper as /servlets/CacheWrapper?Servlet=ServletA&A=1&B=2 CacheWrapper would look for a cached result with matching URL parameters for ServletA and if it found one return that, otherwise cache it. Thanks for any insight Steve -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html/> Problems?: [EMAIL PROTECTED]