"/myApp/WEB-INF/jsp/styles/myJsp.css HTTP/1.1" is in the WEB-INF directory.
As such the browser cannot get read it as your container will not directly
serve anything under WEB-INF. You need to move the css file to somewhere
outside web-inf that is directly accessible.

-----Original Message-----
From: Joe Polanik [mailto:jPolanik@;cds.duke.edu]
Sent: Friday, October 25, 2002 02:22
To: Struts Users
Subject: 404 error looking for stylesheet


Page location: /myApp/WEB-INF/jsp/myPage.jsp

myPage.jsp contains
     <html:base/>
     <link rel="stylesheet" href="../styles/myJsp.css" type="text/css">

this results in a log entry of
   "GET /myApp/WEB-INF/jsp/styles/myJsp.css HTTP/1.1" 404 693

(correct location of style sheet)

In the arkives I found suggestions to use the rewrite function. That
didn't work either

This:
     <link rel="stylesheet" href="<html:rewrite
page='/WEB-INF/jsp/styles/myJsp.css'/>"

rewritten to (in page source):
     <link rel="stylesheet" href="/myApp/WEB-INF/jsp/styles/myJsp.css"
type="text/css">

The log entry was the same:
   "GET /myApp/WEB-INF/jsp/styles/myJsp.css HTTP/1.1" 404 693

Any suggestions?


Thanks

Joseph Polanik


--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

Reply via email to