开发者

What's the easiest way to add Java servlets to a WAMP configured machine?

开发者 https://www.devze.com 2022-12-30 12:06 出处:网络
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 wil开发者_JAVA百科l insert images with s

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 wil开发者_JAVA百科l insert images with src tags that have URLs pointing to my servlet on the same machine.

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?


You have a couple of choices.

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).

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.

0

精彩评论

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