You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Joe Polanik <jP...@cds.duke.edu> on 2002/10/24 20:22:12 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


[OT] Local DTDs to satisfy DOCTYPE

Posted by Tony Baity <to...@yahoo.com>.
  
Hello, 
Lets say I make a Struts application that runs on a private network... sort of an intranet kind of App. with no connection to the internet. 
Where do I put the DTDs locally to satisfy the DOCTYPE in the XML files? 
-Tony (if XFORMS is the answer, what was the question)



---------------------------------
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site

RE: 404 error looking for stylesheet

Posted by Andrew Hill <an...@gridnode.com>.
"/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:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>