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

