CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 24th, 2003, 10:58 AM
hurshid hurshid is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Ankara
Posts: 8 hurshid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to hurshid
Tomcat 4.1.24 and .CSS files

Does Tomcat server supports CSS (Cascading Style Sheets) files.
In my application on JSP, Tomcat does not support it.
wainting for your responses.
thanx in advance

Reply With Quote
  #2  
Old April 24th, 2003, 01:07 PM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
Tomcat should support the request of any kind of document, which css files fall under. It should not matter if it is a jsp or an html file. Post the problem you are having and the jsp code for more help.

Reply With Quote
  #3  
Old April 24th, 2003, 07:11 PM
hurshid hurshid is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Ankara
Posts: 8 hurshid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to hurshid
detailed problem

well, I have bys.css file, which defines styles for tables and other objects in the site. So, I am applying this styles to the objects.

When I open the html file on the explorer not using server, everything is OK. But when I am using URL address of the file using the web server no style effect can be seen.

what is the problem here? I think server does not support the css file or simply it cannot see where the css file is.

waiting for the responses
thanx...

Reply With Quote
  #4  
Old April 24th, 2003, 07:13 PM
hurshid hurshid is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Ankara
Posts: 8 hurshid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to hurshid
the file router

I put to my file the below line:

<link rel="stylesheet" href="../WEB-INF/BYS.css" type="text/css">

but, no effect on the site when I am addressing to the file through its url address.
but everything is ok when I execute it directly, not using the url address.

thanx...

Reply With Quote
  #5  
Old April 24th, 2003, 07:15 PM
hurshid hurshid is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Ankara
Posts: 8 hurshid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to hurshid
suggession

May be I have to put the file to some other place, like lib directory ?

Reply With Quote
  #6  
Old April 26th, 2003, 11:11 AM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
You cannot place files you want to be accessible from the client (browser) in the WEB-INF directory. App servers will not honor any request to any files or directories in this directory. Place the .css file somewhere else in your web root and it should work.

You have to realize how the css file is accessed. You are serving up html to the browser from a jsp or something, then when the browser gets to the LINK tag it makes ANOTHER request to the web server for that file. The file is not included by the jsp per se.

Reply With Quote
  #7  
Old April 26th, 2003, 01:49 PM
hurshid hurshid is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Ankara
Posts: 8 hurshid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to hurshid
OK

I have put the file in the directory where the jsp files locate, and also in the root.
But no effect?

Reply With Quote
  #8  
Old April 26th, 2003, 06:49 PM
Nemi Nemi is offline
Clueless llama
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Feb 2001
Location: Lincoln, NE. USA
Posts: 2,353 Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level)Nemi User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 12 h 35 m 19 sec
Reputation Power: 111
Post the exact path where the css file and jsp are located and also the exact link tag as it is in your jsp please.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Tomcat 4.1.24 and .CSS files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway