[hunchentoot-devel] hunchentoot doesn't show a picture

Haris Bogdanović fbogdanovic at xnet.hr
Wed Jun 23 20:06:00 UTC 2010


I have this piece of code:
-------------------------------------------------------------------------------------------------------------------------
(hunchentoot:start (make-instance 'hunchentoot:acceptor :port 5000))

(push (hunchentoot:create-prefix-dispatcher "/" 'start-page) hunchentoot:*dispatch-table*)
(push (hunchentoot:create-folder-dispatcher-and-handler "pics/" "c:")
      hunchentoot:*dispatch-table*)


(defun start-page ()
  (cl-who:with-html-output-to-string (*standard-output* nil :indent t)
    (:html
     (:body
      (:img :alt "alt" :src "pics/pic01.jpg")))))
--------------------------------------------------------------------------------------------------------------------------------
and when I go to http://localhost:5000 I don't see a picture, I see alternative text "alt".
Why, where is the problem ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20100623/5e615881/attachment.html>


More information about the Tbnl-devel mailing list