Hi guys, I'm having problems setting up javascript and jquery in my maven spring mvc project.

This is what I have done so far.

1) Under webapp, I created a js folder. Inside I put a jquery.js and a myscript.js

In one of my jsp pages, I'm trying to a call a function inside myscript.js, but it doesn't work. I tried many different paths, but still the problems persists.

Inside myscript.js there is a function called hello for testing purposes.

function hello()
{
alert("Hello world");
}

Inside addUser.jsp there is a declaration

<script type="text/javascript" src="js/myscript.js"></script>

And a call to a method..

<script type="text/javascript">
hello();
</script>


It doesn't call the function. If i put the hello function inside the jsp, it works, but I don't want it in the same file.

Any ideas guys?