Squeak instead of Servlets
Lex Spoon
lex at cc.gatech.edu
Tue Jul 31 03:53:47 UTC 2001
> Hello,
> I'm enquiring as to whether anyone has done any work running Squeak =
> rather than a servlet (or even JSPs) on a servlet engine with Apache and =
> DB or if not, can anyone give me some relevant info such as different =
> methods to achieve the same end.
You can run PWS and the never Comanche as servers on their own port. I
don't know of anyone who has gotten Squeak to run underneath Apache,
though it's doable with a little programming.
> There's a few things I'd like to do in that vein and servlets is the =
> only way I know how (not knowing perl or php) but I'd be more interested =
> in using Squeak if possible.=20
Squeak comes with PWS. With PWS, you implement one method #process:
which accepts a HTTP request and puts a reply back. Hook your class up
like this:
PWS link: 'testservlet' to: MyClass new
Start PWS like this:
PWS serveOnPort: 8080 loggingTo: 'pws.log'
Now you can connect to /testservlet on the localhost and it will run
your #process: command. To figure out how to write #process: methods,
see ScreenshotAction for a very simple example, ServerAction for a
fairly simple example, and SwikiAction for a complicated example.
If you really get into it, you'll probably want to grab Comanche. I'm
afraid I don't know details of getting started with Comanche, though....
-Lex
More information about the Squeak-dev
mailing list
|