[plt-scheme] starting 2 servlets at the same time
I have 2 servlets.
Servlet1
#:servlet-path "/servlet1"
Servlet2
#:servlet-path "/servlet2"
I need to run them simultaneously.
I mean when i try to access http://localhost:8000//servlet1 servlet1
should process the request. And vice versa, when i access
http://localhost:8000//servlet2 servlet2 should process the request.
But now i can run either 1 or 2.
Sorry for dummy question. Thanks.
servlet sample below
#lang scheme
(require web-server/servlet-env)
(require web-server/servlet)
(define (start1 request)
'(html
(body "Servlet1")))
(serve/servlet start1
#:launch-browser? #t
#:quit? #f
#:listen-ip #f
#:port 8000
#:extra-files-paths
(list (build-path my-path "htdocs"))
#:servlet-path
"/servlet1" )