Hello again (o:
On Tue, 3 Jul 2001 19:44, Richard Richter wrote:
> At last: Something out of this topic. "Re: reference material" - Dmitri
> wrote something about look at mod_jk-howt and tomcat-apache-howto... so...
> In these HTMLs (on the server - so called "latest documentation" or
> something ;-)) is mentioned ApJServMount... really often! This confused me
> always I read it. Because both documents are in mod_jk section of
> documentation... In fact - tomcat-apache-howto starts with mod_jk and
> config examples are with these ApJServMounts... Hm? Is it historical
> reason? (Many times mentioned problem of documentation to Tomcat?)
Yes - its the old adapter between tomcat and apache. I wasn't sure whether
to point you at tomcat-apache-howto for those reasons. The doco goes into it
in mod_jk at the start (briefly). Thats all I know (o:
> Where shortname is mapped to Class class ;-)... When in such a servlet is
> link to image (eg. obligate "images/tomcat.gif"), one is good (shortname),
> but other not (.../admin/servlet/images/tomcat.gif doesn't exist). Which
> way is obvious to solve this problem?
> - Have I use only shortnames?
> - Have I use absolute link? (Works in both.)
> - Have I use ../images link for Class? (First case.)
> - Or have I configure alias remapping servlet/images to images? (I guess
> this is configured in Tomcat, not in httpd.conf - because this URL part is
> solved by Tomcat, hm?)
> - Or something else? :-)))
Yes. (o: The problem is a client side issue in that without an explicit
BASE HREF tag at the start of your html the browser will try and resolve all
references (links as well as images) relative to the current path. If the
current path is /admin/AdminServlet then an image ../images/foo.jpg should
look (in apache) for /images/foo.jpg. However as you change the request
path, this will affect the resolving of references. Your options are:
1. base href tag (html spec)
2. absolute paths (my preference)
3. make it work for the one you're going to use and not worry about the
other.
I prefer absolute paths because when you break a page up into components
(navbars being a typical example) then you can use them anywhere on your
site. Having said that, its not really a tomcat question so I'll stop there
(o:
cheers
dim