Re: [racket] Serving a static html file

2010-12-06 Thread racketusers . 20 . gilesroberts
I'm glad it is working Jay Sent from my iPhone On Dec 6, 2010, at 11:17 AM, Giles Roberts wrote: > Dear Jay, > > Thanks for letting me know I'm on the right track. I've reduced my html file > to the simplest possible and it's now producing the expected result. Must be > something within

Re: [racket] Serving a static html file

2010-12-06 Thread racketusers . 20 . gilesroberts
Dear Jay, Thanks for letting me know I'm on the right track. I've reduced my html file to the simplest possible and it's now producing the expected result. Must be something within the hairy beast I was initially trying to serve that was causing the upset. Regards Giles. ___

Re: [racket] Serving a static html file

2010-12-06 Thread racketusers . 20 . gilesroberts
I cannot replicate the problem. Maybe if you send me an tarball with an accurate picture of the situation I can find some subtlety. But when I use the file you've given and put some HTML file in the "htdocs" directory, I get the expected result. Jay On Sun, Dec 5, 2010 at 12:41 AM, Giles Roberts

Re: [racket] Serving a static html file

2010-12-04 Thread racketusers . 20 . gilesroberts
Dear Jay, I can replicate the problem with the test static example from the web server tutorial: #lang web-server/insta (define (start request) '(html (head (title "Testing")) (link ((rel "stylesheet") (href "/test-static.css") (type "text/css

Re: [racket] Serving a static html file

2010-12-04 Thread Jay McCarthy
How are you starting the server? If you are starting with serve/servlet, then you use #:extra-files-paths and the Web server will take care of it. Your second paragraph makes me think that you are reading a static file inside of your servlet and then returning the string, rather than letting the W