Originally posted by Milind Manjrekar:
it was typo error while posting here
Typo? Why didn't you just copypaste it? Changing code because of posting it at a forum is a bad idea.
Correct code is:
<script type ="text/javascript" src = "/static/javascript/Jsrp.js" >
I tried removing leading slash. However, I still get the same error jsCalled() is not defined.
Tried? So you don't understand how relative URL's work?
Anyway, what's the absolute URL with which you requested the JSP file? (that URL which you see in the browser address bar). Also, what is the absolute URL with which you can call the .js file independently? Once you know that,
you should be able to extract the right relative URL of the .js file from it.
I think this error needs setting context path, not sure though.
This sentence makes no sense.