Thats why it does not work the way you are expecting it to.
The easiest way to do this, along with maintaining the dynamic-ness of your stylesheet location is by putting this line in the <head>:
<link rel="stylesheet" type="text/css" href='<@html.rewrite page=""/>/FTL/resources/css/mainstyle.css'>
So, you use a simple "link", however, while defining the location of the css file, you use a html rewrite.
(The code you see above is freemarker and not jsp, just change the syntax of the tag).
Now your pages, no matter where they are in your file tree will look for mainstyle.css from the application context-path:
i.e.: tomcat/webapps/myapp/FTL/resources/css/mainstyle.css
If you change the location of the css, just do a multi-file search and replace.
HTHs, Karan
Hyrum wrote:
I can't get my struts application to recognize my Style Sheet. Here is the link I am using:
<html:link style="cssStyle" href="/include/filename.css" />
My filename.css is simple:
a.menu { font-size: 115%; text-decoration: none; color: Brown }
I'm trying to use the css to create a style for some menu links. It works if I use the <style> tags within the jsp, but if I use the <html:link> tag, it doesn't see it. What am I doing wrong??
Hyrum Ward Software Developer T&R Tax Services
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- CM II Resolution Systems Inc. /-- never compromise. what if you compromise and lose? --/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]