什么是与Java servlet添加到WAMP配置的机器最简单的方法? [英] What's the easiest way to add Java servlets to a WAMP configured machine?

查看:530
本文介绍了什么是与Java servlet添加到WAMP配置的机器最简单的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的本地机器上安装WAMP,我期待来提供使用jFree的伊斯特伍德图表,这需要我使用servlet图表。所以基本上我会插入与有网址,指着我的servlet在同一台机器上的SRC标记的图像。

I have WAMP installed on my local machine and am looking to serve up charts using jFree's Eastwood charting, which requires me to use servlets. So basically I will insert images with src tags that have URLs pointing to my servlet on the same machine.

什么是允许在同一台机器上的servlet最简单的方法?我需要一个不同的端口上安装一个servlet服务器?或者是有将其集成到WAMP的方式?

What's the easiest way to enable servlets on the same machine? Do I need to install a servlet server on a different port? Or is there a way to integrate it into WAMP?

推荐答案

您有几个选择。

最简单的是得到一个Web容器,如Tomcat或Jetty和不同的端口上运行(默认情况下它通常是8080)。

The easiest is to get a Web container such as Tomcat or Jetty and run it on a different port (by default it's usually 8080).

一个Web容器可以集成到Apache和这往往是在生产现场发生了什么。请参见 Apache Tomcat的HOWTO 或的 2的Apache和Tomcat 6:如何配置。这可能是矫枉过正的地方安装。

A Web container can be integrated into Apache and this tends to be what happens in production sites. See Tomcat-Apache HOWTO or Apache 2 with Tomcat 6: How to Configure. It's probably overkill for a local install.

这篇关于什么是与Java servlet添加到WAMP配置的机器最简单的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆