>From the Web server's perspective, a servlet is just a function from requests to responses. If you use serve/servlet, there's no reason that the 'start' function you give it can't dispatch to many things that you think of as independent servlets:
(define-values (top-dispatch top-url) (dispatch-rules [("cats" (string-arg) ...] goto-cat-servlet] [("dogs" (string-arg) ...] goto-dog-servlet])) (define (goto-cat-servlet req args) (cat-servlet req)) etc Additionally, if you use the command line tool, 'plt-web-server', then servlets will be read, cgi-bin-style, from a directory you name in a configuration file. This same functionality is available with the 'servlets-root' argument to serve/servlet. Jay On Fri, Nov 2, 2012 at 4:50 PM, Kejia柯嘉 <w.ke...@gmail.com> wrote: > hi all, > > i read several examples showing how to deploy a servlet in a racket web > server, but none mentions how to run multiple ones at a time. so, racket's > web application model appeals single-servlet services? > > `` > (serve/servlet start #:listen-ip #f #:port 8080) > '' > > ------------- > kejia > > ☵☯☲ > > > ____________________ > Racket Users list: > http://lists.racket-lang.org/users > > -- Jay McCarthy <j...@cs.byu.edu> Assistant Professor / Brigham Young University http://faculty.cs.byu.edu/~jay "The glory of God is Intelligence" - D&C 93
____________________ Racket Users list: http://lists.racket-lang.org/users