Thanks, this worked, I didn't understand the sneaky trick of making "blog.html" a jsp file.

<servlet-mapping>
    <servlet-name>jsp</servlet-name>
<!-- Sneaky trick: make blog.html be a jsp that includes the right file -->
    <url-pattern>/diglloyd/blog.html</url-pattern>
</servlet-mapping>

The file "/diglloyd/blog.html" (same as /diglloyd/blog.jsp) so that existing user bookmarks will work:

<%@ include file="2008-03-blog.html" %>


On Mar 24, 2008, at 11:30 AM, Caldarale, Charles R wrote:
From: DIGLLOYD INC [mailto:[EMAIL PROTECTED]
Subject: Re: replacement for symbolic links to files (Apache
httpd to Tomcat)

Wouldn't "/blog.html" refer to http://diglloyd.com/blog.html ?  That
would be wrong...

Sorry, I didn't realize your webapp is named "ROOT" (the default
webapp), rather than "diglloyd", so your original value is correct.

(blog.jsp is in the ROOT webapp at /diglloyd/blog.jsp)

However, you didn't follow David's instructions: the above should be
named "blog.html", not "blog.jsp" in order for the servlet mapping trick
to work.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e- mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Lloyd Chambers
http://diglloyd.com

[Mac OS X 10.5.2 Intel, Tomcat 6.0.16]





---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to