Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 90742 invoked from network); 28 Nov 2005 16:45:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Nov 2005 16:45:59 -0000 Received: (qmail 79857 invoked by uid 500); 28 Nov 2005 12:33:49 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 79836 invoked by uid 500); 28 Nov 2005 12:33:49 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 79825 invoked by uid 99); 28 Nov 2005 12:33:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2005 04:33:49 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: error (asf.osuosl.org: local policy) Received: from [195.172.82.235] (HELO mail1.qas.com) (195.172.82.235) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2005 04:35:14 -0800 Received: from orion.qas.com (orion.qas.com) by mail1.qas.com (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Mon, 28 Nov 2005 12:33:00 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: css and images (stupid question?) Date: Mon, 28 Nov 2005 12:33:00 -0000 Message-ID: <5684A7E6FB10504393A2806C1F4C0210076CE957@orion.qas.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: css and images (stupid question?) Thread-Index: AcX0FzceYUelmhUOTz6p2UB5s/6+/QAAEDKQ From: "Allistair Crossley" To: "Tomcat Users List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Your URLs if absolute would need to contain the web application name unless your web appliation was the ROOT web application (the only one that runs at /). =20 Therefore if you webapp was called apple and was in webapps/apple, your image refs would need to be /apple/images/ You can use relative image URLs in your CSS OK "BUT" if you are linking to a CSS sheet, again youd need the href to point to /apple/css/mycss.css.=20 Other than that, you can define your CSS styles in the of your pages and then use relative refs to your images, e.e ../images/ Allistair -----Original Message----- From: Kristian Rink [mailto:kristian@zimmer428.net]=20 Sent: 28 November 2005 12:28 To: Tomcat Users List Subject: css and images (stupid question?) =20 ------------------------------------------------------- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- =20 Disclaimer: The information contained within this e-mail is confidential a= nd may be privileged. This email is intended solely for the named recipient= only; if you are not authorised you must not disclose, copy, distribute, o= r retain this message or any part of it. If you have received this message = in error please contact the sender at once so that we may take the appropri= ate action and avoid troubling you further. Any views expressed in this me= ssage are those of the individual sender. QAS Limited has the right lawful= ly to record, monitor and inspect messages between its employees and any th= ird party. Your messages shall be subject to such lawful supervision as QA= S Limited deems to be necessary in order to protect its information, its in= terests and its reputation. =20 Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS L= imited cannot guarantee that attachments are virus free or compatible with = your systems and does not accept any liability in respect of viruses or com= puter problems experienced. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all; playing around with tomcat in order to both learn using the package and create a small web site there, I'm currently left with a problem which, though probably being small (and not really related to tomcat), keeps bugging me: I'm trying to do the visual stuff of my jsp using a css style file, which is good, so far. Within the css file, I'm using images for backgrounds etc like that: background: #fff url(/images/bg_header_blau.jpg) no-repeat top left; My problem, right now, is where to put the images within the web application so they're actually found when displaying the page. Initially, I created a folder "images" within my web application and referred to the images using url(images/...) with relative path names, which didn't work. Also tried to place the images folder inside $CATALINA_HOME/webapps and then using absolute image urls (/image/...), which also didn't work. So, where's the magic? I've always been through some tougher moments with css and images while dynamically generating content, but right now I feel really helpless about that. Can someone enlighten me? Cheers and thanks, Kris - -- Kristian Rink * http://zimmer428.net * jab: kawazu@jabber.ccc.de icq: 48874445 * fon: ++49 176 2447 2771 "Be yourself the kind of change you want to see in this world." (Gandhi) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDive4cxBAPOA1m6wRAnRxAJ90PaDKZsQQDo3M4CCd7WV5Syi/MgCdGhbs hobJ1TqkErAqjLxZc6gV0kM=3D =3DO7hF -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org =20 ------------------------------------------------------- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- =20 Disclaimer: The information contained within this e-mail is confidential a= nd may be privileged. This email is intended solely for the named recipient= only; if you are not authorised you must not disclose, copy, distribute, o= r retain this message or any part of it. If you have received this message = in error please contact the sender at once so that we may take the appropri= ate action and avoid troubling you further. Any views expressed in this me= ssage are those of the individual sender. QAS Limited has the right lawful= ly to record, monitor and inspect messages between its employees and any th= ird party. Your messages shall be subject to such lawful supervision as QA= S Limited deems to be necessary in order to protect its information, its in= terests and its reputation. =20 Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS L= imited cannot guarantee that attachments are virus free or compatible with = your systems and does not accept any liability in respect of viruses or com= puter problems experienced. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org