开发者

Running JSP application using tomcat 6.0 and Eclipse

开发者 https://www.devze.com 2023-04-05 10:13 出处:网络
I am working on an academic project using Eclipse 3.X , jsp\'s, servlet\'s etc. The server i chosed to deploy my application is \"Tomcat 6.0\".开发者_开发问答

I am working on an academic project using Eclipse 3.X , jsp's, servlet's etc. The server i chosed to deploy my application is "Tomcat 6.0".开发者_开发问答

when i change any of my code in the application, i am facing problem with running the application. the changes in the code are not showing any affect even though i restart the server. the changes only get affected, if i restart my eclipse. i tried lot of ways by googling about integration of eclipse with tomcat but nothing worked?. I always have to restart the eclipse, to see my changes.

Please help me with this issue.

thanks in advance.


You should simply be able to use the "republish" feature after saving/building.


1, If the development path and deployment path is the same dictionary, make sure that the "Build Automatically" is checked, it's in "Project->Build Automatically", it can help you deploy the files which are changed.

2, If the development path and deployment path is not the same dictionary, you can write an ant task to deploy project.


if u are running in eclipse it is running the tomcat server of eclipse so for changes to be affected it should be refresh so u have to restart eclipse better way is to use outside eclipse and use localhost and tomcat manager u can restart and can see the changes or use ajax

0

精彩评论

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

关注公众号