calling javascript file within JSP

I'm using netbeans project builder in an attempt to modify a project to an AJAX format instead of HTML forms format. So far, the biggest hurdle is that I can't get a JSP page to load a javascript file. The call as usual is

<script language="Javascript" type="text/javascript" src="foo.js">

The webpage is automatically generated when I compile the project and is dumped into a folder within the project folder such that

projectFolder/build/web/foo.js

where all the other generated files are built and ready to be loaded into the server I use to run the application. So the particular JSP file in this case is one level lower than the javascript file such that

-- foo.js

-- jspFolder1/

-- jspFile1

jspFile1 being the one making the called as shown above. I'm just looking for the appropriate way to make a call to a function in a JavaScript file.

Thanks,

Javier

[936 byte] By [javier.gonzaleza] at [2007-10-2 23:56:35]
# 1
try this:<script language="Javascript" type="text/javascript" src="../foo.js">
jgalacambraa at 2007-7-14 16:43:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

I have already tried

src="../foo.js"

src="/foo.js"

src="http://hometomcat/webappfolder/foo.js"

and none of the above work. I don't know if this is something concerning netbeans in particular. I tried locating the page in several places within the project folder and so far nothing has worked.

javier.gonzaleza at 2007-7-14 16:43:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
is your browser javascript enabled?
jgalacambraa at 2007-7-14 16:43:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
The browser is javascript enabled and I use firefox so there is no IE problems to think about. Thanks for your concern.
javier.gonzaleza at 2007-7-14 16:43:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
are you sure your ajax script are correct and can run well?
rick.qina at 2007-7-14 16:43:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...