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.
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.
Rhubarb : Thanks. Is there a stupid simple way to setup Tomcat or Jetty, and why would I want one over the other? I am looking for something as stupid simple as WAMP, if it exists for this.Rhubarb : By the way, I am on Windows 7, for whatever that's worth.Rhubarb : Wow, done. Wow, very amazing how easy that was! Have it all running in under 10 minutes :)cletus : @Rhubarb Jetty vs Tomcat, it's really six of one, half a dozen of the other. Either will do although I tend to prefer Jetty.
0 comments:
Post a Comment