wamp服务器:如何部署jsp应用程序

发布于 2024-08-04 04:31:47 字数 133 浏览 1 评论 0原文

我刚开始使用 WAMP 服务器。我无法在其上部署我的 java 应用程序。 仅运行 Html 页面。请帮助了解目录结构以及保存 jsp、java、.class、war、xml 文件的位置。当我单击 jsp 链接时,JSP 代码显示在 html 页面上。

I am newly started using WAMP server. I am unable to deploy my java application on it.
only Html pages run. Please help with directory structure and where to keep jsp, java, .class ,war,xml files. JSP code is shown on html page when i click link for jsp.

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

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

发布评论

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

评论(4

余生再见 2024-08-11 04:31:47

我会实际回答你的问题,而不是一个自以为是的万事通。

是的,您可以在同一台计算机上同时部署wampserver和Tomcat。默认情况下,Wamp 将自身绑定到端口 80,这是 http 协议的默认端口。我相信Tomcat将自身绑定到端口8080,所以应该不会有冲突,但如果有冲突,只需将Tomcat更改为8080,您就可以同时运行它们。如果您想要一些小且更易于使用的东西,请尝试 Blazix。

祝你好运。

I will actually answer your question instead of being a snotty know-it-all.

Yes, you can deply wampserver and Tomcat at the same time on the same computer. By default Wamp binds itself to port 80 which is the default port for the http protocol. I believe Tomcat binds itself to port 8080 so there should be no conflict but if there is, just change Tomcat to 8080 and you can run them both at the same time. If you want something small and easier to work with try Blazix.

Good luck to you.

情徒 2024-08-11 04:31:47

WAMP 服务器主要用于 Windows 上的 PHP/MySQL 开发,不支持开箱即用的 Java/JSP。(AFAIK)虽然可以使用相同的 WAMP 安装来配置它以支持 JSP,但您仍然需要一个用于解释 Java/JSP 源文件的 Servlet 容器。由于您是 WAMP 新手,因此安装不同的 Servlet 容器(例如下面给出的 Tomcat)会更合乎逻辑,以减少启动和运行所需的时间。

要以除项目规范之外的最少配置/维护来部署 JSP 应用程序,请查看适用于 Windows 的 Apache Tomcat。

http://tomcat.apache.org/ - 下载 Tomcat 6.0(Windows 服务)

WAMP Server is primarily meant for PHP/MySQL Development on Windows and does not support Java/JSP out of the box.(AFAIK) While it would be possible to use the same WAMP installation for configuring it to support JSPs, you would still need a Servlet Container for interpreting your Java/JSP source files. Since you are new to WAMP, it would be more logical to install a different Servlet Container such as Tomcat given below to reduce the time needed to get you up and running.

To deploy JSP applications with minimal configuration/maintenance other than your project specifications, check out Apache Tomcat for Windows.

http://tomcat.apache.org/ - Download Tomcat 6.0(Windows Service)

简单 2024-08-11 04:31:47

也许我错了和/或我不明白这个问题...但是如果您使用 WAMP 服务器:这不是用于 PHP 开发的服务器 - 而不是 JAVA/JSP 吗?

如果您需要部署一些与 JAVA 相关的应用程序,我想您可能必须使用支持 JAVA 的服务器——像 Apache Tomcat

Maybe I'm wrong and/or I don't understand the question... But if you are using WAMP Server : is that not a server for PHP development -- and not JAVA/JSP ?

If you need to deploy some JAVA-related application, you'll probably have to use a server that supports JAVA, I suppose -- what about something like Apache Tomcat ?

素年丶 2024-08-11 04:31:47

Wamp 服务器和 Tomcat 都在同一台机器上工作,没有任何配置错误或任何其他错误。
因此,如果您为了其他网页设计目的而安装了 Wamp,那么只需继续安装 Tomcat 来处理 jsp 文件即可。
我自己也做过同样的事情,而且它一直有效。

Wamp server and Tomcat both work on the same machine without any configuration error or any else error.
So just go on and install Tomcat for jsp files if you have installed Wamp for other web designing purposes.
I have myself done the same thing and it works continuously.

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