Skip to Content
0
Former Member
Aug 28, 2012 at 02:56 PM

Accessing Resources From Other Development Tracks Dynamically

13 Views

Hi,

- Saying I have 2 tracks (NWDI Track):

First track TRACK1_DEV has, a Software Component with a Development Component (of type Web Module), that contains a CSS file, file.css.

> TRACK1_DEV

> SC_1

> DC1_web_module

> Web Content

> css

> file.css

Second track TRACK2_DEV has, a Software Component with a Development Component (of type Web Module), that contains a JSP file, index.jsp.

> TRACK2_DEV

> SC_2

> DC2_web_module

> Web Content

> index.jsp

- Via NWDI, I add SC_1 as a dependency of SC_2.

- I also added DC1 as a dependency of DC2.

So my question is, is there a way to "link" file.css from TRACK1_DEV to the index.jsp from TRACK2_DEV?

What we're currently doing is to deploy the DC1_web_module via an EAR file, and hard code the URL to the

<link rel="stylesheet" href="192.168.1.1/TRACK1_DEV~DC1_web_module~sample.com/css/file.css" /> of index.jsp in DC2_web_module.

Is there a way to make this more dynamic? What should I put in href to be able to make it more dynamic?

<link rel="stylesheet" href="?????" />

Thanks in advance!

Regards,

John