开发者

editing a javascript file in a Tomcat web application

开发者 https://www.devze.com 2023-03-05 03:00 出处:网络
I edited a .js file that is included by a .jsp file, but when i package and deploy the war the javascript behaviour does not change. I\'m using maven as a package manager. I\'ve ran mvn clean,compile,

I edited a .js file that is included by a .jsp file, but when i package and deploy the war the javascript behaviour does not change. I'm using maven as a package manager. I've ran mvn clean,compile, p开发者_运维百科ackage and deployed the war to the webapps directory in the catalina_base, and also deleted the old web application folder.


Hum... Dumb question, but have you cleared your browser cache? If you did, try stopping the server and starting it again (with the war file in the deployment folder). Also, take a look at here and here to learn about exploded contexts and application manager, so that you can achieve a faster development cycle.


Make sure your web browser does not have the resource cached.

Of course, it's also possible that the change you made does not produce the behavior you desired. View the source (and headers) of the javascript file sent to your browser to verify if the changes are appearing.

0

精彩评论

暂无评论...
验证码 换一张
取 消