"Shivashis Bose" wrote:
>
> Hi Kevin
>
> I am not facing this problem when I am requesting a static HTMl page located in
> the server's document root. I am experiencing this problem, when a servlet
> generates a HTML page and has a <LINK REL .......> line in it.
>
> I have tried all the options suggested by U but the problem persists.

I think you must be missing something, although it's hard to say. I
understood that the servlet is creating the HTML page. But links in the
generated page (which are not links to a servlet, CGI, etc.) are handled
by the browser and server as requests for static pages or files. The
request for StyleSheet.css is handled as a request for a static file.

Here's what works on the project I work on:

web server root: /management/web/htm
If a web browser used the URL http://www.ourServer.com/index.html, the
server sends the page /management/web/htm/index.html
style sheet is located at /management/web/htm/StyleSheet.css

Our project uses servlets which generate the html that is sent to the
browser.

Here's the style sheet link created by one of our servlets:
<link rel=StyleSheet href="/IlsStyleSheet.css" type="text/css">

When the browser sends the request for the style sheet, the server
interprets the request for /StyleSheet.css as a request for
http://{server root}/StyleSheet.css, and that's the file
(/management/web/htm/StyleSheet.css) that the server sends.

If the style sheet was located at
/management/web/htm/stylesheets/StyleSheet.css, the link would be
HREF="/stylesheets/StyleSheet.css"

K Mukhar

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to