JSTL C:import - java script include issue

Hi

My application is deployed in JBoss application server.

I need to include a HTML file ( which is present in different apache server ) into the JSP.

Im using the following jsp snippet to accomplish the same.

<c:import url="--apache server html file path--"/>

Here is where i need help..

The HTML file has few java script includes of the following type.

<script language="JavaScript" src="../../../globalscript.js"> </script>

The java script files resides in Apache server.

Im not able to give absolute url to include javascript due to other issue.

But when i import the HTML, the app server is searching for java script files in JBoss environment and not in Apache environment.Hence, the scripts files are not properly included.

Is there any way to include java scripts in such case?

Thanks

Prakash A

[905 byte] By [prakash_nathana] at [2007-11-27 1:21:24]
# 1
Try using a connector to connect JBoss to Apache.Or, specify the full URL.
appy77a at 2007-7-11 23:59:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

in such cases its a good coding practice to declare a global static variable such as "jspath","csspath" which can store the whole path which takes you to the folder which has that js file

<inculde ><%=jspath%>/jsfile.jsp>

So even if you want to change the path later , you can change in one place which will effect every where in the application.

chacko_alexa at 2007-7-11 23:59:09 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...