|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
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... |
|
#4
|
|||
|
|||
|
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... |
|
#5
|
|||
|
|||
|
suggession
May be I have to put the file to some other place, like lib directory ?
|
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
OK
I have put the file in the directory where the jsp files locate, and also in the root.
But no effect? |
|
#8
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Tomcat 4.1.24 and .CSS files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|