Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 56471 invoked from network); 7 Dec 2002 02:37:04 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Dec 2002 02:37:04 -0000 Received: (qmail 21074 invoked by uid 97); 7 Dec 2002 02:36:22 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 20775 invoked by uid 97); 7 Dec 2002 02:36:19 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 20426 invoked by uid 98); 7 Dec 2002 02:36:16 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Fri, 6 Dec 2002 18:34:54 -0800 (PST) From: "Craig R. McClanahan" To: Tomcat Users List Subject: RE: SEO and servlets In-Reply-To: <399E1F52E73BD41194A800D0B74A08AB01E4DD5A@skipper.cincom.com> Message-ID: <20021206105105.J83469-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 6 Dec 2002, Cox, Charlie wrote: > Date: Fri, 6 Dec 2002 08:13:20 -0500 > From: "Cox, Charlie" > Reply-To: Tomcat Users List > To: 'Tomcat Users List' > Subject: RE: SEO and servlets > > I do a silimar thing where all my content is in a database as XML, so that > the users can update their content when *they* need to(not when I get around > to it). Then the html is created using xsl when requested. > > The way that I set this up is that I map a directory to each servlet (or > sometimes multiple directories to a servlet for different functionality for > another set of pages) and then use real page names. These appear to be > static html pages. This allows the pagename to be a prarm for the servlet. > A popular technique for supporting this sort of thing is to use path mapping with the wild card pattern. Consider a servlet that is mapped to "/display/*", and a URL like this: http://www.mycompany.com/myapp/display/foo.html The "/foo.html" part of that URL shows up in your servlet as the "extra path info", and can be used to go look up the database information and perform the translation. Your application understands that you're executing a servlet that is creating (potentially) dynamic content. Yet, to users and search engines, this appears to be a URL of a static HTML page in the "display" subdirectory. "Is it live or is it Memorex?" was a marketing slogan for a brand of audiotapes a few years ago. Only your app server knows for sure ... :-) > I also do not have many forms(nor do I use struts,etc) so that is not a > problem for me. > This kind of dynamic content (where it changes occasionally but not often) is reasonable to index with a search engine. One thing you'll want to make sure you do is include a "Date" header (containing some representation of when the underlying database was last updated) in the response -- that way, browsers can also cache the rendered page and only update when the underlying data changes. You'll also want to implement the "getLastModified()" method in your servlet for this to work. > Charlie > Craig -- To unsubscribe, e-mail: For additional commands, e-mail: