Hi, What do I need to do to run a stateless servlet?
Consider the following example taken from the web tutorial. I just added `#:stateless? #t` while starting. #lang racket (require web-server/servlet web-server/servlet-env) ; start: request -> response (define (start request) (show-counter 0 request)) ; show-counter: number request -> doesn't ; Displays a number that's hyperlinked: when the link is pressed, ; returns a new page with the incremented number. (define (show-counter n request) (send/suspend/dispatch (lambda (url) (response/xexpr `(html (head (title "Counting example")) (body (a ([href ,(url (lambda (req) (show-counter (add1 n) req)))]) ,(number->string n)))))))) (serve/servlet start #:port 7070 #:servlet-path "/" #:listen-ip #f #:stateless? #t) This doesn't work. I am looking at the web server reference but I can't find a proper example.
_________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users