Hi,
finally I've managed to serve static files without using an external web server. Indeed I want to have a standalone application that's why I don't want to use an external web server.
Object subclass: #SeaslidesServer
....
SeaslidesServer class
instanceVariableNames: 'adaptor'
SeaslidesServer class>>startSeaslides
| ma seaside |
"Kill all existing Kom HTTP servers"
HttpService allInstancesDo: [:each | each stop. each unregister].
adaptor := (WAKom startOn: 8080).
ma := ModuleAssembly core.
ma serverRoot: (FileDirectory default directoryNamed: 'Bespin') fullName.
ma alias: '/seaslides' to: [ma addPlug: [:request | self processHttpRequest: request]].
ma alias: '/files' to: [ma addPlug: [:request | self processHttpRequest: request]].
ma documentRoot: (FileDirectory default directoryNamed: 'Bespin') fullName.
ma directoryIndex: 'index.html index.htm'.
ma serveFiles.
adaptor service plug: ma rootModule.
SeaslidesServer class>>processHttpRequest: aRequest
^ self adaptor process: aRequest
http://localhost:8080/seaslides is my application.
http://localhost:8080/files is needed for Seaside libraires.
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside