I created a webservice project named FirstTest using dwr.
In WebContent folder I have a JSP. After successful deployment there is a JS
localhost:8080/FirstTest/dwr/interface/getdata.js
So in JSP I wrote
<script type="text/javascript" src="/FirstTest/dwr/interface/getdata.js">
Now I rename the project to SecondTest then the js location changed to
localhost:8080/SecondTest/dwr/interface/getdata.js
and I have to rewrite the JSP file path. Then how to use relative path instead? I tried
<script type="text/javascript" src="../dwr/interface/getdata.js">
and
<script type="text/javascript" src="/dwr/interface/getdata.js">
but both not working.
Thx for any help.