[plt-scheme] PLT Web Server

From: Emmanuel Delaborde (emmanuel.delaborde at cimex.com)
Date: Sat Jul 25 18:58:39 EDT 2009

On 25 Jul 2009, at 21:03, Noel Welsh wrote:
> 1. Your function add-image didn't return a xexpr; instead it returned
> void. It must return something to the browser, or you'll get this
> error message. A simple result might be:
>   '(html (head (title "Thanks")) (body (h1 "Thanks. Your file has been
> saved.")))
> 2. Using extract-binding/single and friends is bad style; better to
> use bindings-assq -- search Help Desk for the docs (press F1 in
> DrScheme, or choose Help from the menu).
> Finally, I don't know of any sizable public projects written using the
> web server.  (There are several sizable private projects written using
> it.)
> HTH,
> N.

Thanks Noel,

Point 1 fixed the error and point 2 gave a valuable example with  
bindings-assq and some file-related form binding info

I was also using write instead of display when saving the file  
content and that didn't work


Posted on the users mailing list.