The correct way to add a second CSS file
Running Creator 2U1 on Windows XP
What is the correct way to add a second CSS file to the project?
here is a section of the Page1.JSP file:
<ui:head binding="#{Page1.head1}" id="head1">
<ui:link binding="#{Page1.link1}" id="link1" media="all" url="/resources/stylesheet.css"/>
</ui:head>
simply duplicating the line as such crashes the application:
<ui:head binding="#{Page1.head1}" id="head1">
<ui:link binding="#{Page1.link2}" id="link2" media="print" url="/resources/print.css"/>
</ui:head>
How to do it?
Thanks
[606 byte] By [
farmboya] at [2007-11-27 10:57:11]

# 1
To add a CSS file to your project:
- From the main menu -> file -> Add Existing Item -> Style Sheet
- Navigate to the files location, and select file.
- The CSS file is added to the project under the project's resource directory.
# 3
The method provided does bring the css file into the current environment
However, I need to actually have the pages use the information within the stylesheet
I guess I need to know how to get the css entry into the JSP page
As noted earlier, simply including the (second not counting the master) css file into project and duplicating the "stylesheet.css entry (changing the link1 to link2) causes the application to fail on the "link2" entry
can anyone help me here..
Thanks