> I'm trying to get servlets to find my *.css files in Apache.
>
> My *.html files are served by Apache via the following directory
structure:
> /public_html
>         /forms
>         /css
>
> Many of my *.html forms have a style declaration that looks for the
style
> sheet:
> <style type="text/css">
>         import "/css/my.css";
> </style>

You have to remeber that a) the CSS is applied on the client side and b)
the all relative URLs are relative to the URL to the servlet. If you
start the URL with a / it will start fram Apaches document root.

You might want to try the LINK tag
  <link rel="stylesheet" href="/css/default.css" type="text/css">
or with absolute path/URL
  <link rel="stylesheet"
href="http://your.host.com/dna_prod/html/css/default.css";
type="text/css">

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to