Hello!
I have a problem with stylesheets in combination using TomCat.
I have my stylesheets in the same catalogue as my jsp-pages.
In my JSP-pages that are using the stylesheet I have this link in the head section.
<link rel="stylesheet" type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"mystyle.css" >
But when I compile and run my pages it ignores the stylesheet.
What should I do to overcome this little problem?
Thanks for helping me!It should not matter how your pages are generated on the server. Make sure that the resultant HTML mark-up has no errors.
Link to the page in question would be useful.Hello!
You are right!
I had an error in my syntax.
Thank you for taking your time helping me.
Regards // D_S
Originally posted by Vladdy
It should not matter how your pages are generated on the server. Make sure that the resultant HTML mark-up has no errors.
Link to the page in question would be useful.Originally posted by Vladdy
It should not matter how your pages are generated on the server. Make sure that the resultant HTML mark-up has no errors.
Link to the page in question would be useful. The server has to deliver the style sheet with the correct content type, though.The server has to deliver the style sheet with the correct content type, though.
what dose this mean?
i have same problem too ><
the css cant be displayed to my JSP web that running with Tomcat.
please help :sIt means a stylesheet (*.css) has a MIME type of text/css but some servers deliver it with text/plain or other default. Any version of Tomcat less than a few years old should be ok unless you've messed up your web app configuration. Errors in your sources are more likely the problem.the origional problem has been fixed. the result is that, when the page contains ONE css, it works. however, it failed when it contains more than one css. the format and tables cant display well. i duno the reason but i fixed that =0=.
i want to know the reson too btw
I have a problem with stylesheets in combination using TomCat.
I have my stylesheets in the same catalogue as my jsp-pages.
In my JSP-pages that are using the stylesheet I have this link in the head section.
<link rel="stylesheet" type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"mystyle.css" >
But when I compile and run my pages it ignores the stylesheet.
What should I do to overcome this little problem?
Thanks for helping me!It should not matter how your pages are generated on the server. Make sure that the resultant HTML mark-up has no errors.
Link to the page in question would be useful.Hello!
You are right!
I had an error in my syntax.
Thank you for taking your time helping me.
Regards // D_S
Originally posted by Vladdy
It should not matter how your pages are generated on the server. Make sure that the resultant HTML mark-up has no errors.
Link to the page in question would be useful.Originally posted by Vladdy
It should not matter how your pages are generated on the server. Make sure that the resultant HTML mark-up has no errors.
Link to the page in question would be useful. The server has to deliver the style sheet with the correct content type, though.The server has to deliver the style sheet with the correct content type, though.
what dose this mean?
i have same problem too ><
the css cant be displayed to my JSP web that running with Tomcat.
please help :sIt means a stylesheet (*.css) has a MIME type of text/css but some servers deliver it with text/plain or other default. Any version of Tomcat less than a few years old should be ok unless you've messed up your web app configuration. Errors in your sources are more likely the problem.the origional problem has been fixed. the result is that, when the page contains ONE css, it works. however, it failed when it contains more than one css. the format and tables cant display well. i duno the reason but i fixed that =0=.
i want to know the reson too btw