使用tomcat 6.0和Eclipse运行JSP应用程序

发布于 2024-12-04 21:40:23 字数 308 浏览 4 评论 0原文

我正在使用 Eclipse 3.X、jsp、servlet 等进行一个学术项目。我选择部署应用程序的服务器是“Tomcat 6.0”。

当我更改应用程序中的任何代码时,我在运行应用程序时遇到问题。即使我重新启动服务器,代码中的更改也没有显示出任何影响。如果我重新启动 eclipse,这些更改只会受到影响。我通过谷歌搜索有关 eclipse 与 tomcat 的集成尝试了很多方法,但没有任何效果?我总是必须重新启动 eclipse,才能看到我的更改。

请帮我解决这个问题。

提前致谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

月朦胧 2024-12-11 21:40:23

您应该能够在保存/构建后使用“重新发布”功能。

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

婴鹅 2024-12-11 21:40:23

1、如果开发路径和部署路径是同一个字典,请确保选中“自动构建”,它在“项目->自动构建”中,它可以帮助您部署更改的文件。

2、如果开发路径和部署路径不是同一个字典,可以编写ant任务来部署项目。

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.

浅暮の光 2024-12-11 21:40:23

如果你在 eclipse 中运行,它正在运行 eclipse 的 tomcat 服务器,因此为了使更改受到影响,它应该刷新,所以你必须重新启动 eclipse 更好的方法是使用外部 eclipse 并使用 localhost 和 tomcat 管理器,你可以重新启动并可以看到更改或使用ajax

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文