Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat on AS400 not recognizing style sheet 2

Status
Not open for further replies.

jem122974

Programmer
Nov 1, 2001
114
US
When I run my web app under WDSc and the test app server on my laptop it uses my style sheet fine. But when I move my pages to our AS400 which is running Tomcat it doesn't. It is like the style sheet can't be found, but I know it is there. I have the same problem with referencing images in a subfolder. What could I be missing?

Code:
<link href="theme/ejiw.css" rel="stylesheet" type="text/css" >


Thanks,
Jon Mitchell
 
It is like the style sheet can't be found, but I know it is there.

Try typing in the URL of the stylesheet - if it you receive an error (such as 404 - can't be found), then it's not accessible - refer to your documentation for fixing this.

If it's there, then it's probably being served with an incorrect MIME type: css should be server as MIME type: "text/css". When looking at the stylesheet in Mozilla, right clicking and selecting 'page info' will show you the MIME type.

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Thanks for the pointer. I tried typing in the URL and got 404 Not Found. So I search through my doc for access and found where I have to add URL Mapping. I added an alias for this folder and then it worked fine. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top