[plt-scheme] Requests in plt-web-server

From: Justin Paston-Cooper (paston.cooper at gmail.com)
Date: Thu Feb 21 12:00:58 EST 2008

Hello. I've recently been developing an article-writing website with
plt-web-server, and I've come across a problem with url queries. My code for
the page is:

(module post
  mzscheme

  (require (lib "servlet.ss" "web-server"))

  (provide start interface-version timeout)

  (define interface-version 'v1)
  (define timeout +inf.0)

  (define (start initial-request)
    (send/finish
     `(html
       (body (p (format "~a" (request-bindings initial-request))))))))

When I go to http://localhost:8080/servlets/post.ss?x=2 , all I get is:

~a&initial-request;

. This is just a test to see if the bindings environment exists. All I
really want, is the value of x. Is there anything that I am doing wrong
here? Thank you.

Justin Paston-Cooper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080221/14822e58/attachment.html>

Posted on the users mailing list.