What i am doing is that i am diaplying an html content from a jsp, that content has a call to a java script function which is defined in some another java script file which i am including in the html code.
The fact that you are using a JSP is moot. What matters is what is sent to the browser, and what the URL you are using is. Your external resources will be releative to the URL. Best bet is to perform a View Source to check that what is being sent to the browser is what you expect, and that the href's of your external resources are correct for the accessing URL. bear