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.

Rradhikaa at 2007-7-29 12:07:39 > top of Java-index,Development Tools,Java Tools...
# 2

Thanks

farmboya at 2007-7-29 12:07:39 > top of Java-index,Development Tools,Java Tools...
# 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

farmboya at 2007-7-29 12:07:39 > top of Java-index,Development Tools,Java Tools...
# 4

Check the following:

http://developers.sun.com/jscreator/reference/techart/2/style_editor.html#4

The section on :

Using Custom Style Sheets for a Project

Rradhikaa at 2007-7-29 12:07:39 > top of Java-index,Development Tools,Java Tools...
# 5

I just copy and paste from within outline after actually inserting the file in the project resources folder and then modify the media and filename

Thanks anyway

farmboya at 2007-7-29 12:07:39 > top of Java-index,Development Tools,Java Tools...